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 <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Paul-Isache authored and BridgeAR committed Nov 13, 2018
1 parent 2baa59b commit 0c4facf
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 0c4facf

Please sign in to comment.