Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bcf24e7

Browse filesBrowse files
eojthebraveMylesBorins
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 <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> 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>
1 parent 2a3ba01 commit bcf24e7
Copy full SHA for bcf24e7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-net-socket-local-address.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-net-socket-local-address.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.