test(terrain): fail the first 429 test instead of hanging if its request never settles

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
quanticsoul4772andClaude Opus 5.5 committed 2026-10-25 18:55:17 -07:00
1 parent 9546dba1c7
commit 5410c97307
1 file changed
+1
@@ -432,6 +432,7 @@ test('after a 429 the terrain proxy leaves the upstream alone and logs once', as
await new Promise((resolve) => setImmediate(resolve));
t.mock.timers.tick(1_000);
}
assert.ok(settled, 'the first request settles within its retry budget');
await first;
const afterFirst = calls;
assert.ok(afterFirst >= 1);