Skip to content

Commit 71884ec

Browse files
author
Asif Ansari
committed
test(tree-data): widen the linear-build ratio bound for noisy CI runners
1 parent d531033 commit 71884ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lib/hooks/useTreeData.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ describe('useTreeData — build cost', () => {
286286
const large = best(80_000);
287287
// 4x the rows: about 4x the time when linear, about 16x when quadratic (the old build took
288288
// ~14 s for 100k children).
289-
expect(large / small).toBeLessThan(9);
289+
// Linear is ~4x and quadratic ~16x; 12 leaves room for noisy CI runners.
290+
expect(large / small).toBeLessThan(12);
290291
}, 120_000);
291292
});

0 commit comments

Comments
 (0)