From c3d3f3f46433169f6c1f370dfd58c9b8e5017788 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Wed, 3 Jun 2026 23:40:34 -0700 Subject: [PATCH] test(cli): widen TUI frame-wait bound (3s -> 10s) for loaded CI shards vi.waitFor polls, so the bound adds zero time to green runs; ink frame scheduling has flaked past 3s under shard CPU contention while passing instantly in isolation. --- .../cli/src/commands/dashboard-tui/__tests__/app.test.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/dashboard-tui/__tests__/app.test.tsx b/packages/cli/src/commands/dashboard-tui/__tests__/app.test.tsx index 71c55544c7..b4fcfd80d0 100644 --- a/packages/cli/src/commands/dashboard-tui/__tests__/app.test.tsx +++ b/packages/cli/src/commands/dashboard-tui/__tests__/app.test.tsx @@ -155,7 +155,10 @@ afterEach(() => { vi.useRealTimers(); }); -async function waitForFrameContains(lastFrame: () => string | undefined, text: string, timeoutMs = 3000) { +// 10s bound: ink schedules frames on timer ticks and has flaked past 3s under +// loaded CI shards while passing instantly in isolation. vi.waitFor polls, so +// a generous bound adds zero time to passing runs. +async function waitForFrameContains(lastFrame: () => string | undefined, text: string, timeoutMs = 10_000) { await vi.waitFor(() => { expect(lastFrame() ?? "").toContain(text); }, { timeout: timeoutMs });