diff --git a/test/parallel/test-http2-respond-with-file-connection-abort.js b/test/parallel/test-http2-respond-with-file-connection-abort.js index 6c8337ba8bc5b6..ed200e5b391fe8 100644 --- a/test/parallel/test-http2-respond-with-file-connection-abort.js +++ b/test/parallel/test-http2-respond-with-file-connection-abort.js @@ -24,7 +24,7 @@ server.listen(0, common.mustCall(() => { const req = client.request(); req.on('response', common.mustCall(() => {})); - req.on('data', common.mustCallAtLeast(() => { + req.once('data', common.mustCall(() => { net.Socket.prototype.destroy.call(client.socket); server.close(); }));