diff --git a/test/parallel/test-pipe-head.js b/test/parallel/test-pipe-head.js index 1cfff9888d0d7f..cb3d183fcdff20 100644 --- a/test/parallel/test-pipe-head.js +++ b/test/parallel/test-pipe-head.js @@ -13,5 +13,5 @@ const cmd = `"${nodePath}" "${script}" | head -2`; exec(cmd, common.mustCall(function(err, stdout, stderr) { assert.ifError(err); const lines = stdout.split('\n'); - assert.strictEqual(3, lines.length); + assert.strictEqual(lines.length, 3); }));