Skip to content

Commit de59972

Browse files
committed
Fix flaky test
1 parent 5e28e14 commit de59972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/webapp/test/fairDequeuingStrategy.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ describe("FairDequeuingStrategy", () => {
263263

264264
console.log("Second distribution took", distribute2Duration, "ms");
265265

266-
// Make sure the second call is more than 9 times faster than the first
267-
expect(distribute2Duration).toBeLessThan(withTolerance(distribute1Duration / 9));
266+
// Make sure the second call is more than 2 times faster than the first
267+
expect(distribute2Duration).toBeLessThan(withTolerance(distribute1Duration / 2));
268268

269269
const startDistribute3 = performance.now();
270270

0 commit comments

Comments
 (0)