Skip to content

Commit 53fb82d

Browse files
Illescas, Ricardojasnell
Illescas, Ricardo
authored andcommitted
test: fix argument order in assertions
PR-URL: #23589 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: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 59a221d commit 53fb82d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-child-process-ipc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ child.stdout.on('data', function(data) {
4444
console.log(`child said: ${JSON.stringify(data)}`);
4545
if (!gotHelloWorld) {
4646
console.error('testing for hello world');
47-
assert.strictEqual('hello world\r\n', data);
47+
assert.strictEqual(data, 'hello world\r\n');
4848
gotHelloWorld = true;
4949
console.error('writing echo me');
5050
child.stdin.write('echo me\r\n');
5151
} else {
5252
console.error('testing for echo me');
53-
assert.strictEqual('echo me\r\n', data);
53+
assert.strictEqual(data, 'echo me\r\n');
5454
gotEcho = true;
5555
child.stdin.end();
5656
}

0 commit comments

Comments
 (0)