diff --git a/src/cli/run/runner.test.ts b/src/cli/run/runner.test.ts index b7d53294..03f1b6e1 100644 --- a/src/cli/run/runner.test.ts +++ b/src/cli/run/runner.test.ts @@ -117,7 +117,8 @@ describe("waitForEventProcessorShutdown", () => { //#then const elapsed = performance.now() - start expect(elapsed).toBeGreaterThanOrEqual(timeoutMs) - expect(spy).toHaveBeenCalledWith( + const callArgs = spy.mock.calls.flat().join("") + expect(callArgs).toContain( `[run] Event stream did not close within ${timeoutMs}ms after abort; continuing shutdown.`, ) } finally {