diff --git a/test/sequential/test-http-server-consumed-timeout.js b/test/sequential/test-http-server-consumed-timeout.js index 56217226503be1..80b78b2202a016 100644 --- a/test/sequential/test-http-server-consumed-timeout.js +++ b/test/sequential/test-http-server-consumed-timeout.js @@ -31,7 +31,7 @@ server.listen(0, common.mustCall(() => { const req = http.request({ port: server.address().port, method: 'POST' - }, (res) => { + }, () => { const interval = setInterval(() => { intervalWasInvoked = true; // If machine is busy enough that the interval takes more than TIMEOUT ms