test(runner): bound ACPX admission wait on CI

This commit is contained in:
Dotta committed 2026-09-03 02:39:56 -05:00
1 parent c8b6ae04f9
commit cf6c1e161c
1 file changed
+6 -1
@@ -1068,7 +1068,12 @@ describe("ACPX runtime host", () => {
},
fixture.dependencies({ openRuntime }),
);
await vi.waitFor(() => expect(openRuntime).toHaveBeenCalledOnce());
// Real credential staging and tool-bridge startup can exceed Vitest's
// one-second waitFor default on a busy CI runner. Keep the admission live
// until it reaches the boundary this cancellation test is exercising.
await vi.waitFor(() => expect(openRuntime).toHaveBeenCalledOnce(), {
timeout: 5_000,
});
expect(receivedSignal).toBe(controller.signal);
controller.abort(cancellation);