From aab6e1a7ca0d46c03d33338d8fec0c958203a6e7 Mon Sep 17 00:00:00 2001 From: renxia Date: Wed, 28 Feb 2024 15:58:12 +0800 Subject: [PATCH] =?UTF-8?q?test(async):=20=E6=9B=B4=E6=96=B0=20sleep=20?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/async.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/async.spec.ts b/src/common/async.spec.ts index db2958e..e55d158 100644 --- a/src/common/async.spec.ts +++ b/src/common/async.spec.ts @@ -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 () => {