Skip to content

Commit ca24bcf

Browse files
lotharthesaviorjasnell
authored andcommitted
test: fix assert.strictEqual() argument order
PR-URL: #23564 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 7e79e01 commit ca24bcf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/parallel/test-tcp-wrap-connect.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ function makeConnection() {
1818
assert.strictEqual(err, 0);
1919

2020
req.oncomplete = function(status, client_, req_, readable, writable) {
21-
assert.strictEqual(0, status);
22-
assert.strictEqual(client, client_);
23-
assert.strictEqual(req, req_);
24-
assert.strictEqual(true, readable);
25-
assert.strictEqual(true, writable);
21+
assert.strictEqual(status, 0);
22+
assert.strictEqual(client_, client);
23+
assert.strictEqual(req_, req);
24+
assert.strictEqual(readable, true);
25+
assert.strictEqual(writable, true);
2626

2727
const shutdownReq = new ShutdownWrap();
2828
const err = client.shutdown(shutdownReq);
2929
assert.strictEqual(err, 0);
3030

3131
shutdownReq.oncomplete = function(status, client_, error) {
32-
assert.strictEqual(0, status);
33-
assert.strictEqual(client, client_);
32+
assert.strictEqual(status, 0);
33+
assert.strictEqual(client_, client);
3434
assert.strictEqual(error, undefined);
3535
shutdownCount++;
3636
client.close();
@@ -55,7 +55,7 @@ const server = require('net').Server(function(s) {
5555
server.listen(0, makeConnection);
5656

5757
process.on('exit', function() {
58-
assert.strictEqual(1, shutdownCount);
59-
assert.strictEqual(1, connectCount);
60-
assert.strictEqual(1, endCount);
58+
assert.strictEqual(shutdownCount, 1);
59+
assert.strictEqual(connectCount, 1);
60+
assert.strictEqual(endCount, 1);
6161
});

0 commit comments

Comments
 (0)