Skip to content

Commit fc6682f

Browse files
committed
Flaky test
1 parent 22e8b77 commit fc6682f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocking-queue.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('BlockingQueue', () => {
7878
expect(await queue.dequeue()).toBe(1);
7979
expect(Date.now() - startTime).toBeLessThan(2000);
8080
expect(await queue.dequeue()).toBe(2);
81-
expect(Math.ceil(Date.now() - startTime)).toBeGreaterThanOrEqual(2000);
81+
expect(Math.ceil(Math.ceil(Date.now() - startTime))).toBeGreaterThanOrEqual(2000);
8282

8383
queue.done();
8484
});

0 commit comments

Comments
 (0)