From 3a615a47432db7f40cc5070982340e5d3638689f Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 3 Sep 2026 02:39:50 -0500 Subject: [PATCH] test(runner): bound ACPX admission wait on CI --- .../paperclip-runner/src/drivers/acpx/runtime-host.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/paperclip-runner/src/drivers/acpx/runtime-host.test.ts b/packages/paperclip-runner/src/drivers/acpx/runtime-host.test.ts index 215461af4f..c14950a81e 100644 --- a/packages/paperclip-runner/src/drivers/acpx/runtime-host.test.ts +++ b/packages/paperclip-runner/src/drivers/acpx/runtime-host.test.ts @@ -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);