Skip to content

Commit

Permalink
Fix test timing
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Feb 5, 2019
1 parent 124ce42 commit d9f1a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,8 @@ describe('Core', () => {
expect(count1).to.equal(2);

const timer = new Hoek.Bench();
await server.stop({ timeout: 20 });
expect(timer.elapsed()).to.be.at.most(21);
await server.stop({ timeout: 100 });
expect(timer.elapsed()).to.be.at.most(110);
});

it('waits to destroy handled connections until after the timeout', async () => {
Expand Down

0 comments on commit d9f1a68

Please sign in to comment.