diff --git a/test/parallel/test-http-res-write-end-dont-take-array.js b/test/parallel/test-http-res-write-end-dont-take-array.js index fbe71bd6fcbb67..72268efcae3a84 100644 --- a/test/parallel/test-http-res-write-end-dont-take-array.js +++ b/test/parallel/test-http-res-write-end-dont-take-array.js @@ -62,10 +62,10 @@ server.once('request', common.mustCall((req, res) => { server.listen(0, function() { // just make a request, other tests handle responses - http.get({ port: this.address().port }, function(res) { + http.get({ port: this.address().port }, (res) => { res.resume(); // do it again to test .end(Buffer); - http.get({ port: server.address().port }, function(res) { + http.get({ port: server.address().port }, (res) => { res.resume(); server.close(); });