test: wider wait range

This commit is contained in:
DIYgod 2019-01-24 11:31:51 +08:00
parent 5286dfe37a
commit a539d14f51
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 2 additions and 2 deletions

View File

@ -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);
});
});