Skip to content

Commit

Permalink
[misc] test correction for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Feb 3, 2023
1 parent a71072d commit 7b9001f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/test-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ describe('Pool', () => {
pool.query('SELECT SLEEP(15)');
await new Promise((res) => setTimeout(() => res(), 100));
await pool.end();
assert.equal(process.hrtime(start)[0], 10);

// on windows, less accurate, so need to have 11 too
assert.isTrue(process.hrtime(start)[0] === 10 || process.hrtime(start)[0] === 11);
});

it('pool escape', function (done) {
Expand Down

0 comments on commit 7b9001f

Please sign in to comment.