From 9bab3cfed8c42e319874615d2ff71a73b23b448a Mon Sep 17 00:00:00 2001 From: "Chakhsu.Lau" Date: Mon, 13 Nov 2023 18:13:29 +0800 Subject: [PATCH] fix: test pass in window and node.js v20 --- test/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.test.js b/test/index.test.js index defdbc0..216a944 100755 --- a/test/index.test.js +++ b/test/index.test.js @@ -79,7 +79,7 @@ describe('Grpc Loader', () => { await client2.sayHello({ name: 'grpc' }, loader.makeMetadata({ 'x-long-delay': 'true' })) expect.fail('should not run here') } catch (err) { - expect(Date.now() - start).to.be.lte(timeout * 1.5) + expect(Date.now() - start).to.be.lte(timeout * 2) expect(/Deadline/i.test(err.message)).to.be.eq(true) expect(/SayHello/i.test(err.message)).to.be.eq(true) }