Skip to content

Commit

Permalink
test(async): 更新 sleep 单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
renxia committed Feb 28, 2024
1 parent 69f6756 commit aab6e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/async.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe('async.ts#sleep', () => {
await sleep(100);
const end = Date.now();

expect(end - start).toBeGreaterThanOrEqual(100);
expect(end - start).toBeGreaterThanOrEqual(100 - 10);
});

it('should resolve with provided value', async () => {
Expand Down

0 comments on commit aab6e1a

Please sign in to comment.