Skip to content

Commit

Permalink
test: Compare to proper base timing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Aug 14, 2017
1 parent 0d9759a commit ea684dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/max-sockets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ describe('fetch: maxSockets', function () {
'The next two are the same...',
Math.abs(times[2] - times[3]) < 50);
assert.expect(
'...just 100+ ms later',
times[2] - times[1] > 100);
// leaving some space for timing issues
'...just 100+ ms later (' + times[2] + ' - ' + times[0] + ' >= 90)',
times[2] - times[0] > 90);

assert.expect(
'#5 uses a different hostname, so it should happen with the first 2',
Expand Down

0 comments on commit ea684dd

Please sign in to comment.