Skip to content

Commit a4794c4

Browse files
committed
test(signals): give the heap-mark ratio tripwire a 30 s timeout — the __TEST__ shadow puts it past 5 s under coverage
1 parent 15d4cfa commit a4794c4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/signals/tests/heap-mark-incremental.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ describe("heap marking stays incremental across mid-tick pulls", () => {
8080
ratio = Math.min(ratio, large / small);
8181
}
8282
expect(ratio).toBeLessThan(24);
83-
});
83+
// 30 s, not vitest's 5 s: under coverage the reader-seat shadow (S0,
84+
// `__TEST__` only — it compares every read and every pass against the
85+
// deciders) puts the three rounds of 8,000-row mounts past 5 s. The
86+
// ratio is what is asserted; the clock is only a hang guard.
87+
}, 30_000);
8488

8589
it("a write landing between two mid-tick pulls is visible through a memo chain in the same pass", () => {
8690
// The first sync render effect's read marks the heap; the row's write

0 commit comments

Comments
 (0)