diff --git a/test/parallel/test-stream-writable-destroy.js b/test/parallel/test-stream-writable-destroy.js index 565a5564e2bc29..a88bf9ab2424e7 100644 --- a/test/parallel/test-stream-writable-destroy.js +++ b/test/parallel/test-stream-writable-destroy.js @@ -189,7 +189,7 @@ const { inherits } = require('util'); const expected = new Error('kaboom'); write.destroy(expected, common.mustCall(function(err) { - assert.strictEqual(expected, err); + assert.strictEqual(err, expected); })); }