Skip to content

Commit

Permalink
test: fix flaky windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlup committed Mar 16, 2021
1 parent 9d262b1 commit 61683c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/doc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ test('custom sample interval', t => {
sampler.once('sample', () => {
const end = process.hrtime(start)
const elapsed = hrtime2ms(end)
t.true(elapsed >= 2000 && elapsed < 2200)
const message = `expected: value >= 2000, value: ${elapsed}`
t.true(elapsed >= 2000, message)
t.end()
})
})
Expand Down

0 comments on commit 61683c1

Please sign in to comment.