diff --git a/test/parallel/test-http-client-get-url.js b/test/parallel/test-http-client-get-url.js index 7f6bfb8ecaa17b..a72eea56538c4d 100644 --- a/test/parallel/test-http-client-get-url.js +++ b/test/parallel/test-http-client-get-url.js @@ -28,8 +28,8 @@ const URL = url.URL; const testPath = '/foo?bar'; const server = http.createServer(common.mustCall((req, res) => { - assert.strictEqual('GET', req.method); - assert.strictEqual(testPath, req.url); + assert.strictEqual(req.method, 'GET'); + assert.strictEqual(req.url, testPath); res.writeHead(200, { 'Content-Type': 'text/plain' }); res.write('hello\n'); res.end();