From ee15cf9038b5dacf21871d7b89fcbb3ed112ffe2 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Tue, 4 Aug 2026 12:02:34 +0900 Subject: [PATCH] test: give envelope spawn-loop tests timeout headroom The two continuation-loop tests spawn ax ~10 times each; under machine load that exceeds Bun's default 5s test timeout (reproduced at load average ~6.5, including in isolation). Same fix as the bench tests in #58. Co-Authored-By: Claude Fable 5 --- test/cli.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/cli.test.ts b/test/cli.test.ts index 8977284..136e34a 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -594,7 +594,9 @@ test('json envelope: next_offset resumes without overlap or gaps', () => { } expect(actual).toEqual(expected) -}) + // ~10 ax spawns in one test — on a loaded machine that exceeds Bun's + // default 5s test timeout (same class as the bench fix in #58). +}, 30_000) test('json envelope: row, table, and locate use the same contract', () => { const row = JSON.parse( @@ -672,7 +674,8 @@ test('json envelope: budget continuation reconstructs the full result', () => { } expect(actual).toEqual(expected) -}) + // Same spawn-loop shape as above — give it the same headroom. +}, 30_000) test('json envelope: existing --json remains a top-level array', () => { const out = JSON.parse(ax(['page.html', '.card', '--json']).out)