diff --git a/test/parallel/test-pipe-file-to-http.js b/test/parallel/test-pipe-file-to-http.js index 3cadec7a27237e..3d326a77a49bc7 100644 --- a/test/parallel/test-pipe-file-to-http.js +++ b/test/parallel/test-pipe-file-to-http.js @@ -34,7 +34,7 @@ let count = 0; const server = http.createServer(function(req, res) { let timeoutId; - assert.strictEqual('POST', req.method); + assert.strictEqual(req.method, 'POST'); req.pause(); setTimeout(function() { @@ -82,5 +82,5 @@ function makeRequest() { } process.on('exit', function() { - assert.strictEqual(1024 * 10240, count); + assert.strictEqual(count, 1024 * 10240); });