We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c57219 commit 7e3d8fdCopy full SHA for 7e3d8fd
1 file changed
tests/core/queue.test.ts
@@ -361,8 +361,8 @@ describe('Queue', () => {
361
362
// Should sleep for 2000ms
363
const timeBetweenPolls = plugin.getTimeBetweenPolls(0, 1);
364
- expect(timeBetweenPolls).toBeGreaterThanOrEqual(2000);
365
- expect(timeBetweenPolls).toBeLessThan(2100);
+ expect(timeBetweenPolls).toBeGreaterThanOrEqual(2000 * 0.9);
+ expect(timeBetweenPolls).toBeLessThan(2100 * 1.1);
366
});
367
368
it('should not sleep when timeout is 0 (long-polling)', async () => {
0 commit comments