★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/0c4facfbafNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
test: change arguments order in strictEqual
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 0c4facfbaf31cd11c140ddf4954b6db7458ae42c
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-net-eaddrinuse.js
@@ -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);

0 comments on commit 0c4facf

Please sign in to comment.