The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(ui): clean up synchronous browser failures
Yuneng Jianga8ab1187ca67
diff --git a/tests/e2e/ui/helpers/roundTrip.ts b/tests/e2e/ui/helpers/roundTrip.tsindex ee484b8d512..55eb5d6ad9c 100644--- a/tests/e2e/ui/helpers/roundTrip.ts+++ b/tests/e2e/ui/helpers/roundTrip.ts@@ -37,10 +37,12 @@ export async function runWithCleanup(action: () => Promise<void>,cleanup: () => Promise<boolean>,): Promise<void> {- const outcome = await action().then(- () => ({ status: "success" as const }),- (error: unknown) => ({ status: "failure" as const, error }),- );+ const outcome = await Promise.resolve()+ .then(action)+ .then(+ () => ({ status: "success" as const }),+ (error: unknown) => ({ status: "failure" as const, error }),+ );try {if (outcome.status === "failure") throw outcome.error;} finally {