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: nodejs#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 Trott committed Nov 10, 2018
1 parent 850cb54 commit a67e0a6
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 a67e0a6

Please sign in to comment.