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.
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user