diff --git a/test/parallel/test-http2-https-fallback.js b/test/parallel/test-http2-https-fallback.js index 4dabe4e69d..04e9ca480c 100644 --- a/test/parallel/test-http2-https-fallback.js +++ b/test/parallel/test-http2-https-fallback.js @@ -110,9 +110,9 @@ function onSession(session) { common.mustCall(onRequest) ); - server.on('unknownProtocol', common.mustCall((socket) => { + server.once('unknownProtocol', common.mustCall((socket) => { socket.destroy(); - }, 2)); + })); server.listen(0);