Skip to content

Commit

Permalink
test: fix order of parameters to assert.strictEqual
Browse files Browse the repository at this point in the history
Usage of assert.strictEqual in test-net-server-listen-remove-callback.js
incorrectly passes the expected value as the first argument
and actual value as the second argument.

PR-URL: #23590
Reviewed-By: James M Snell <jasnell@gmail.com>
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>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
jasonnutter authored and jasnell committed Oct 17, 2018
1 parent 5d95542 commit 59a221d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-net-server-listen-remove-callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const server = net.createServer();
server.on('close', function() {
const listeners = server.listeners('listening');
console.log('Closed, listeners:', listeners.length);
assert.strictEqual(0, listeners.length);
assert.strictEqual(listeners.length, 0);
});

server.listen(0, function() {
Expand Down

0 comments on commit 59a221d

Please sign in to comment.