Skip to content

Commit

Permalink
test: change arguments order in strictEqual
Browse files Browse the repository at this point in the history
Fix actual/expected ordering in test-net-eaddrinuse.

PR-URL: #24156
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
Paul-Isache authored and MylesBorins committed Dec 26, 2018
1 parent efd697b commit d7a3a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-net-eaddrinuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const server2 = net.createServer(function(socket) {
});
server1.listen(0, function() {
server2.on('error', function(error) {
assert.strictEqual(true, error.message.includes('EADDRINUSE'));
assert.strictEqual(error.message.includes('EADDRINUSE'), true);
server1.close();
});
server2.listen(this.address().port);
Expand Down

0 comments on commit d7a3a3b

Please sign in to comment.