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