test(runner): bound ACPX admission wait on CI

This commit is contained in:
Dotta 2026-09-03 02:39:50 -05:00
parent 439419debb
commit 3a615a4743
1 changed files with 6 additions and 1 deletions

View File

@ -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);