From 6e47b15e823a0b76ec8b6125033e4674d693a04a Mon Sep 17 00:00:00 2001 From: Palash Debnath <4178343+debpalash@users.noreply.github.com> Date: Wed, 2 Sep 2026 01:29:22 +0530 Subject: [PATCH] test: pin backend stall timeout boundary --- .../test/BootstrapSplashAwaitingSetupStall.test.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/test/BootstrapSplashAwaitingSetupStall.test.jsx b/frontend/src/test/BootstrapSplashAwaitingSetupStall.test.jsx index c88623d2..3a32e4c6 100644 --- a/frontend/src/test/BootstrapSplashAwaitingSetupStall.test.jsx +++ b/frontend/src/test/BootstrapSplashAwaitingSetupStall.test.jsx @@ -123,9 +123,17 @@ describe('useBootstrapStage — awaiting_setup is human-gated (#1376)', () => { expect(result.current.stage).toBe('starting_backend'); expect(result.current.message ?? '').not.toMatch(/stuck/i); + // Pin both sides of the six-minute fallback boundary. + await act(async () => { + await vi.advanceTimersByTimeAsync(3 * 60 * 1000 - 1_000); + }); + + expect(result.current.stage).toBe('starting_backend'); + expect(result.current.message ?? '').not.toMatch(/stuck/i); + // A frontend-only deadlock remains bounded if the shell never advances. await act(async () => { - await vi.advanceTimersByTimeAsync(4 * 60 * 1000); + await vi.advanceTimersByTimeAsync(2_000); }); expect(result.current.stage).toBe('failed');