Skip to content

Commit db70175

Browse files
Illescas, RicardoBridgeAR
Illescas, Ricardo
authored andcommitted
test: fix argument order in assertions
PR-URL: nodejs#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 6e017f9 commit db70175

File tree

2 files changed

+3
-3
lines changed

2 files changed

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

test/pummel/test-net-timeout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ echo_server.listen(common.PORT, function() {
6666
});
6767

6868
client.on('data', function(chunk) {
69-
assert.strictEqual('hello\r\n', chunk);
69+
assert.strictEqual(chunk, 'hello\r\n');
7070
if (exchanges++ < 5) {
7171
setTimeout(function() {
7272
console.log('client write "hello"');

0 commit comments

Comments
 (0)