From 2980e8de33b8a73e3e57e90ae306515249db5680 Mon Sep 17 00:00:00 2001 From: Harm Date: Tue, 17 Nov 2026 23:45:38 +0000 Subject: [PATCH] test(e2e): handle the reset-on-progress rejection on early exit The SSE cells throw inside waitFor before the call promise is awaited, so a timeout rejection is left unhandled. Attach a handler the way protocol:timeout:max-total already does. Fixes #3170 --- test/e2e/scenarios/protocol.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/scenarios/protocol.test.ts b/test/e2e/scenarios/protocol.test.ts index 4abcde078d..d3b0d818cc 100644 --- a/test/e2e/scenarios/protocol.test.ts +++ b/test/e2e/scenarios/protocol.test.ts @@ -765,6 +765,8 @@ verifies('protocol:timeout:reset-on-progress', async ({ transport }: TestArgs) = r => ((settled = 'resolved'), r), error => ((settled = 'rejected'), Promise.reject(error)) ); + // SSE known-failures throw inside waitFor before this promise is awaited. + call.catch(() => {}); for (let i = 1; i <= steps; i++) { await vi.advanceTimersByTimeAsync(delayMs);