test(gateway): run local usage report test on large stack

Wrap the local OpenAI chat sync usage-reporting test in the existing
large-stack harness to avoid stack overflows under nextest suite load.
This commit is contained in:
AAEE86
2026-06-01 21:45:44 +08:00
parent 21c478be22
commit 8627a18f2e
+9 -2
View File
@@ -85,8 +85,15 @@ where
stored.expect("usage should be present once the expected status is observed")
}
#[tokio::test]
async fn gateway_handles_local_openai_chat_sync_report_with_local_reporting_when_usage_runtime_enabled(
#[test]
fn gateway_handles_local_openai_chat_sync_report_with_local_reporting_when_usage_runtime_enabled() {
run_async_test_on_large_stack(
"gateway_handles_local_openai_chat_sync_report_with_local_reporting_when_usage_runtime_enabled",
gateway_handles_local_openai_chat_sync_report_with_local_reporting_when_usage_runtime_enabled_impl(),
);
}
async fn gateway_handles_local_openai_chat_sync_report_with_local_reporting_when_usage_runtime_enabled_impl(
) {
let usage_repository = Arc::new(InMemoryUsageReadRepository::default());
let request_candidate_repository = Arc::new(InMemoryRequestCandidateRepository::default());