From fa3d4f417ecc0bb81233693f665035dcf4ba9ead Mon Sep 17 00:00:00 2001 From: Andy Aragon Date: Mon, 8 Jun 2026 03:17:08 -0700 Subject: [PATCH] test: raise the 100k deep-cascade timeout to 60s (CI flake under load) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The recursion-free deep-cascade test builds a 100k-link chain (100k spawn + addPair) before despawning — ~8s locally, but it can exceed the 30s timeout on a heavily contended CI runner, producing spurious failures unrelated to the code under test. Bump to 60s (7.5x the local time) for headroom; the assertion and the decisive DEPTH=100k are unchanged. --- packages/relations/test/m8-relations.property.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/relations/test/m8-relations.property.test.ts b/packages/relations/test/m8-relations.property.test.ts index 04f8556..b3d7421 100644 --- a/packages/relations/test/m8-relations.property.test.ts +++ b/packages/relations/test/m8-relations.property.test.ts @@ -261,7 +261,7 @@ describe('— cascade is iterative BFS: terminates & visits each entity once, ev expect(world.handleStats().aliveCount).toBe(0) // every sibling reached & removed once }) - it('a DEEP (100k) deleteSubject chain despawns without recursion (recursion-free cascade)', { timeout: 30_000 }, () => { + it('a DEEP (100k) deleteSubject chain despawns without recursion (recursion-free cascade)', { timeout: 60_000 }, () => { // /: a deep deleteSubject chain must despawn WITHOUT recursion. The cascade hoists a single // shared frontier queue; the re-entrant onPreDespawn that host.despawn fires per victim appends to // that queue and unwinds one frame, so the native stack stays CONSTANT regardless of chain depth. A