From 00f40881ad68942fd2492598d1647540e25d607f Mon Sep 17 00:00:00 2001 From: Ivan Tymoshenko Date: Thu, 16 Jun 2022 08:14:44 +0300 Subject: [PATCH] test: fix request terminated should not crash fastify test (#4024) --- test/stream.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/stream.test.js b/test/stream.test.js index c4f1be4008..5014244e50 100644 --- a/test/stream.test.js +++ b/test/stream.test.js @@ -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('

should disply on second stream

') stream.push(null)