Skip to content

Commit ce56c40

Browse files
authored
fix(test): wait for gateway hook model activity (#122584)
1 parent 5235269 commit ce56c40

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎test/gateway-hook-concurrency.e2e.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ describe("Gateway hook concurrency", () => {
8989
error: "hook agent run did not start before admission timeout",
9090
runId: expect.any(String),
9191
});
92-
expect(modelServer.active(), instance.logs()).toBeGreaterThan(0);
92+
await vi.waitFor(() => expect(modelServer.active(), instance.logs()).toBeGreaterThan(0), {
93+
interval: 20,
94+
timeout: 30_000,
95+
});
9396
expect(modelServer.peak(), instance.logs()).toBeLessThanOrEqual(SHARED_BUDGET);
9497
expect(modelServer.requestCount(), instance.logs()).toBeLessThanOrEqual(SHARED_BUDGET + 1);
9598

0 commit comments

Comments
 (0)