mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
test: wider wait range
This commit is contained in:
+2
-2
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user