Skip to content

Commit 6936f9c

Browse files
webkkujasnell
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 ec7375a commit 6936f9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sequential/test-pipe.js

+3-3
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)