Skip to content

Commit

Permalink
test: fix potential timeout
Browse files Browse the repository at this point in the history
The default timeout for one test was too low in case the test was
run from a slow machine. This increases the timeout to 4 seconds.
  • Loading branch information
BridgeAR committed Mar 5, 2019
1 parent 51c56e6 commit 4bd5d04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ describe('Router', function () {
})

it('should not stack overflow with many registered routes', function (done) {
// This test might take longer on slow machines.
this.timeout(4000)

var router = new Router()
var server = createServer(router)

Expand Down

0 comments on commit 4bd5d04

Please sign in to comment.