Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Jan 30, 2018
1 parent b8813fb commit b9c2177
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/run.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ test('run should accept a unix socket/windows pipe instead of a url', (t) => {
? path.join('\\\\?\\pipe', process.cwd(), 'autocannon-' + Date.now())
: path.join(os.tmpdir(), 'autocannon-' + Date.now() + '.sock')

helper.startServer({socketPath})
const server = helper.startServer({socketPath})

run({socketPath}, (err, result) => {
t.error(err)
Expand All @@ -254,6 +254,7 @@ test('run should accept a unix socket/windows pipe instead of a url', (t) => {
t.equal(result['5xx'], 0, '5xx codes')
t.equal(result.non2xx, 0, 'non 2xx codes')
t.end()
server.close()
})
})

Expand All @@ -271,6 +272,7 @@ for (let i = 1; i <= 5; i++) {
t.error(err)
t.ok(res[`${i}xx`], `${i}xx status codes recorded`)
t.end()
server.close()
})
})
}

0 comments on commit b9c2177

Please sign in to comment.