test: fix argument order in assertions

PR-URL: https://github.com/nodejs/node/pull/23506
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: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Illescas, Ricardo 2018-10-12 11:19:56 -06:00 committed by Ruben Bridgewater
parent 008b97a2db
commit 6b3b64fa73
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ echo_server.listen(common.PORT, function() {
});
client.on('data', function(chunk) {
assert.strictEqual('hello\r\n', chunk);
assert.strictEqual(chunk, 'hello\r\n');
if (exchanges++ < 5) {
setTimeout(function() {
console.log('client write "hello"');