test: wider wait range
This commit is contained in:
parent
5286dfe37a
commit
a539d14f51
|
|
@ -7,7 +7,7 @@ describe('wait', () => {
|
|||
await wait(0.1 * 1000);
|
||||
|
||||
const endDate = new Date();
|
||||
expect(endDate - startDate).toBeGreaterThanOrEqual(100);
|
||||
expect(endDate - startDate).toBeLessThan(120);
|
||||
expect(endDate - startDate).toBeGreaterThan(90);
|
||||
expect(endDate - startDate).toBeLessThan(110);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue