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 d6dabc7

Browse filesBrowse files
rockiaMylesBorins
authored andcommitted
test: fix assert.strictEqual params order
PR-URL: #23480 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
1 parent 87367ec commit d6dabc7
Copy full SHA for d6dabc7

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/sequential/test-pipe.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-pipe.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const tcp = net.Server(common.mustCall((s) => {
7575
s.on('data', (d) => {
7676
tcpLengthSeen += d.length;
7777
for (let j = 0; j < d.length; j++) {
78-
assert.strictEqual(buffer[i], d[j]);
78+
assert.strictEqual(d[j], buffer[i]);
7979
i++;
8080
}
8181
});
@@ -103,7 +103,7 @@ function startClient() {
103103
}, common.mustCall((res) => {
104104
res.setEncoding('utf8');
105105
res.on('data', common.mustCall((string) => {
106-
assert.strictEqual('thanks', string);
106+
assert.strictEqual(string, 'thanks');
107107
gotThanks = true;
108108
}));
109109
}));
@@ -113,5 +113,5 @@ function startClient() {
113113

114114
process.on('exit', () => {
115115
assert.ok(gotThanks);
116-
assert.strictEqual(bufferSize, tcpLengthSeen);
116+
assert.strictEqual(tcpLengthSeen, bufferSize);
117117
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.