From 04d6e2255383c8ff50d7198f103ad75c924014c4 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 23 Aug 2026 20:35:14 -0700 Subject: [PATCH] test(runtime): isolate mailbox timer assertion --- src/main/runtime/orca-runtime.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/runtime/orca-runtime.test.ts b/src/main/runtime/orca-runtime.test.ts index 3688fec9c39..58549b0fd89 100644 --- a/src/main/runtime/orca-runtime.test.ts +++ b/src/main/runtime/orca-runtime.test.ts @@ -35686,6 +35686,9 @@ describe('OrcaRuntimeService', () => { it('leaves later delivery to the idle edge instead of polling a working mailbox', async () => { vi.useFakeTimers() + // Why: CI reuses Vitest workers across files. Reset their fake-clock queue so + // this leak assertion measures only timers allocated by the mailbox path below. + vi.clearAllTimers() try { const runtime = new OrcaRuntimeService(store) const db = new InMemoryOrchestrationMessages()