diff --git a/test/parallel/test-http-client-keep-alive-release-before-finish.js b/test/parallel/test-http-client-keep-alive-release-before-finish.js index 23686f89c28e5a..0efedc91e2613d 100644 --- a/test/parallel/test-http-client-keep-alive-release-before-finish.js +++ b/test/parallel/test-http-client-keep-alive-release-before-finish.js @@ -13,9 +13,9 @@ const server = http.createServer((req, res) => { const port = server.address().port; const post = http.request({ - agent: agent, + agent, method: 'POST', - port: port, + port, }, common.mustCall((res) => { res.resume(); })); @@ -30,9 +30,9 @@ const server = http.createServer((req, res) => { }, 100); http.request({ - agent: agent, + agent, method: 'GET', - port: port, + port, }, common.mustCall((res) => { server.close(); res.connection.end(); diff --git a/test/parallel/test-http-no-read-no-dump.js b/test/parallel/test-http-no-read-no-dump.js index 457632d6926f68..17d36c56b2eeba 100644 --- a/test/parallel/test-http-no-read-no-dump.js +++ b/test/parallel/test-http-no-read-no-dump.js @@ -24,9 +24,9 @@ const server = http.createServer((req, res) => { const port = server.address().port; const post = http.request({ - agent: agent, + agent, method: 'POST', - port: port, + port, }, common.mustCall((res) => { res.resume(); @@ -43,9 +43,9 @@ const server = http.createServer((req, res) => { post.write('initial'); http.request({ - agent: agent, + agent, method: 'GET', - port: port, + port, }, common.mustCall((res) => { server.close(); res.connection.end();