Skip to content

Commit

Permalink
fix: test pass in window and node.js v20
Browse files Browse the repository at this point in the history
  • Loading branch information
chakhsu committed Nov 13, 2023
1 parent 9bd2915 commit 9bab3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9bab3cf

Please sign in to comment.