Skip to content

Commit b49f4a9

Browse files
eojthebravejasnell
authored andcommitted
test: fix order of arguments passed to strictEqual
The argument order in the strictEqual check was in the wrong order. The first argument is now the actual value and the second argument is the expected value. PR-URL: #23571 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent 2d86696 commit b49f4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/parallel/test-net-socket-local-address.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const server = net.createServer((socket) => {
1818

1919
server.on('close', common.mustCall(() => {
2020
// client and server should agree on the ports used
21-
assert.deepStrictEqual(clientLocalPorts, serverRemotePorts);
22-
assert.strictEqual(2, conns);
21+
assert.deepStrictEqual(serverRemotePorts, clientLocalPorts);
22+
assert.strictEqual(conns, 2);
2323
}));
2424

2525
server.listen(0, common.localhostIPv4, connect);

0 commit comments

Comments
 (0)