From ca24bcf57140dacc6333f1eb1058c77810225964 Mon Sep 17 00:00:00 2001 From: Savio Resende Date: Fri, 12 Oct 2018 10:47:37 -0700 Subject: [PATCH] test: fix assert.strictEqual() argument order PR-URL: https://github.com/nodejs/node/pull/23564 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann Reviewed-By: Ruben Bridgewater Reviewed-By: Gireesh Punathil --- test/parallel/test-tcp-wrap-connect.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/parallel/test-tcp-wrap-connect.js b/test/parallel/test-tcp-wrap-connect.js index 354c9d74edd505..5e3e81f6e11712 100644 --- a/test/parallel/test-tcp-wrap-connect.js +++ b/test/parallel/test-tcp-wrap-connect.js @@ -18,19 +18,19 @@ function makeConnection() { assert.strictEqual(err, 0); req.oncomplete = function(status, client_, req_, readable, writable) { - assert.strictEqual(0, status); - assert.strictEqual(client, client_); - assert.strictEqual(req, req_); - assert.strictEqual(true, readable); - assert.strictEqual(true, writable); + assert.strictEqual(status, 0); + assert.strictEqual(client_, client); + assert.strictEqual(req_, req); + assert.strictEqual(readable, true); + assert.strictEqual(writable, true); const shutdownReq = new ShutdownWrap(); const err = client.shutdown(shutdownReq); assert.strictEqual(err, 0); shutdownReq.oncomplete = function(status, client_, error) { - assert.strictEqual(0, status); - assert.strictEqual(client, client_); + assert.strictEqual(status, 0); + assert.strictEqual(client_, client); assert.strictEqual(error, undefined); shutdownCount++; client.close(); @@ -55,7 +55,7 @@ const server = require('net').Server(function(s) { server.listen(0, makeConnection); process.on('exit', function() { - assert.strictEqual(1, shutdownCount); - assert.strictEqual(1, connectCount); - assert.strictEqual(1, endCount); + assert.strictEqual(shutdownCount, 1); + assert.strictEqual(connectCount, 1); + assert.strictEqual(endCount, 1); });