Skip to content

Commit 74edcc5

Browse files
TrottMylesBorins
authored andcommitted
test: apply camelCase in test-net-reconnect-error
Rename two idnetifiers that were snake_case rather than camelCase. Signed-off-by: Rich Trott <[email protected]> PR-URL: #32120 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
1 parent dd83bd2 commit 74edcc5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/sequential/test-net-reconnect-error.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ const common = require('../common');
2424
const net = require('net');
2525
const assert = require('assert');
2626
const N = 20;
27-
let client_error_count = 0;
28-
let disconnect_count = 0;
27+
let clientErrorCount = 0;
28+
let disconnectCount = 0;
2929

3030
const c = net.createConnection(common.PORT);
3131

3232
c.on('connect', common.mustNotCall('client should not have connected'));
3333

3434
c.on('error', common.mustCall((e) => {
35-
client_error_count++;
35+
clientErrorCount++;
3636
assert.strictEqual(e.code, 'ECONNREFUSED');
3737
}, N + 1));
3838

3939
c.on('close', common.mustCall(() => {
40-
if (disconnect_count++ < N)
40+
if (disconnectCount++ < N)
4141
c.connect(common.PORT); // reconnect
4242
}, N + 1));
4343

4444
process.on('exit', function() {
45-
assert.strictEqual(disconnect_count, N + 1);
46-
assert.strictEqual(client_error_count, N + 1);
45+
assert.strictEqual(disconnectCount, N + 1);
46+
assert.strictEqual(clientErrorCount, N + 1);
4747
});

0 commit comments

Comments
 (0)