mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(test): wait for gateway hook model activity (#122584)
This commit is contained in:
@@ -89,7 +89,10 @@ describe("Gateway hook concurrency", () => {
|
||||
error: "hook agent run did not start before admission timeout",
|
||||
runId: expect.any(String),
|
||||
});
|
||||
expect(modelServer.active(), instance.logs()).toBeGreaterThan(0);
|
||||
await vi.waitFor(() => expect(modelServer.active(), instance.logs()).toBeGreaterThan(0), {
|
||||
interval: 20,
|
||||
timeout: 30_000,
|
||||
});
|
||||
expect(modelServer.peak(), instance.logs()).toBeLessThanOrEqual(SHARED_BUDGET);
|
||||
expect(modelServer.requestCount(), instance.logs()).toBeLessThanOrEqual(SHARED_BUDGET + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user