Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: reverse order of args in reconnect-error assert
  • Loading branch information
jackelin-herrera authored and jackkelin committed Oct 12, 2018
commit d5be5a026db18167aa15423bc27f4c7f4aeb8c51
6 changes: 3 additions & 3 deletions test/sequential/test-net-reconnect-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ c.on('connect', common.mustNotCall('client should not have connected'));

c.on('error', common.mustCall((e) => {
client_error_count++;
assert.strictEqual('ECONNREFUSED', e.code);
assert.strictEqual(e.code, 'ECONNREFUSED');
}, N + 1));

c.on('close', common.mustCall(() => {
Expand All @@ -42,6 +42,6 @@ c.on('close', common.mustCall(() => {
}, N + 1));

process.on('exit', function() {
assert.strictEqual(N + 1, disconnect_count);
assert.strictEqual(N + 1, client_error_count);
assert.strictEqual(disconnect_count, N + 1);
assert.strictEqual(client_error_count, N + 1);
});