Skip to content

Commit 7e3d8fd

Browse files
committed
fix test
1 parent 0c57219 commit 7e3d8fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/core/queue.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ describe('Queue', () => {
361361

362362
// Should sleep for 2000ms
363363
const timeBetweenPolls = plugin.getTimeBetweenPolls(0, 1);
364-
expect(timeBetweenPolls).toBeGreaterThanOrEqual(2000);
365-
expect(timeBetweenPolls).toBeLessThan(2100);
364+
expect(timeBetweenPolls).toBeGreaterThanOrEqual(2000 * 0.9);
365+
expect(timeBetweenPolls).toBeLessThan(2100 * 1.1);
366366
});
367367

368368
it('should not sleep when timeout is 0 (long-polling)', async () => {

0 commit comments

Comments
 (0)