Skip to content

Commit

Permalink
tests: fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Aug 14, 2018
1 parent f588626 commit a17c053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ describe('send(file).pipe(res)', function () {
send(req, req.url, {root: 'test/fixtures'})
.on('stream', function (stream) {
// simulate file error
process.nextTick(function () {
stream.on('open', function () {
stream.emit('error', new Error('boom!'))
})
})
Expand Down

0 comments on commit a17c053

Please sign in to comment.