diff --git a/test/parallel/test-https-client-get-url.js b/test/parallel/test-https-client-get-url.js index 56a6fe6d18641a..5d520416fe22da 100644 --- a/test/parallel/test-https-client-get-url.js +++ b/test/parallel/test-https-client-get-url.js @@ -40,8 +40,8 @@ const options = { }; const server = https.createServer(options, common.mustCall((req, res) => { - assert.strictEqual('GET', req.method); - assert.strictEqual('/foo?bar', req.url); + assert.strictEqual(req.method, 'GET'); + assert.strictEqual(req.url, '/foo?bar'); res.writeHead(200, { 'Content-Type': 'text/plain' }); res.write('hello\n'); res.end();