Skip to content

Commit a17c053

Browse files
committed
tests: fix flaky test
1 parent f588626 commit a17c053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ describe('send(file).pipe(res)', function () {
178178
send(req, req.url, {root: 'test/fixtures'})
179179
.on('stream', function (stream) {
180180
// simulate file error
181-
process.nextTick(function () {
181+
stream.on('open', function () {
182182
stream.emit('error', new Error('boom!'))
183183
})
184184
})

0 commit comments

Comments
 (0)