test(runtime): isolate mailbox timer assertion

This commit is contained in:
Neil
2026-08-23 20:35:14 -07:00
parent e9eb5880f7
commit 04d6e22553
+3
View File
@@ -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()