Skip to content

Commit

Permalink
test: fix request terminated should not crash fastify test (#4024)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-tymoshenko committed Jun 16, 2022
1 parent bf12b12 commit 00f4088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/stream.test.js
Expand Up @@ -770,7 +770,7 @@ test('request terminated should not crash fastify', t => {

reply.send(stream)

await new Promise((resolve) => { setTimeout(resolve, 6).unref() })
await new Promise((resolve) => { setTimeout(resolve, 100).unref() })

stream.push('<h1>should disply on second stream</h1>')
stream.push(null)
Expand Down

0 comments on commit 00f4088

Please sign in to comment.