Skip to content

Commit

Permalink
Extend timeout for TravisCI slowness (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought authored and mcollina committed Dec 21, 2019
1 parent 1eada99 commit cdedd37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/keep-alive.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ test('supports keep alive disconnections after a pingreq', function (t) {

test('disconnect if a connect does not arrive in time', function (t) {
t.plan(2)
t.timeoutAfter(500)
t.timeoutAfter(1000)

var s = setup(aedes({
connectTimeout: 100
connectTimeout: 500
}))
var start = Date.now()

eos(s.conn, function () {
t.ok(Date.now() >= start + 100, 'waits waitConnectTimeout before ending')
t.ok(Date.now() >= start + 500, 'waits waitConnectTimeout before ending')
t.pass('ended')
})
})

0 comments on commit cdedd37

Please sign in to comment.