File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,24 +24,24 @@ const common = require('../common');
24
24
const net = require ( 'net' ) ;
25
25
const assert = require ( 'assert' ) ;
26
26
const N = 20 ;
27
- let client_error_count = 0 ;
28
- let disconnect_count = 0 ;
27
+ let clientErrorCount = 0 ;
28
+ let disconnectCount = 0 ;
29
29
30
30
const c = net . createConnection ( common . PORT ) ;
31
31
32
32
c . on ( 'connect' , common . mustNotCall ( 'client should not have connected' ) ) ;
33
33
34
34
c . on ( 'error' , common . mustCall ( ( e ) => {
35
- client_error_count ++ ;
35
+ clientErrorCount ++ ;
36
36
assert . strictEqual ( e . code , 'ECONNREFUSED' ) ;
37
37
} , N + 1 ) ) ;
38
38
39
39
c . on ( 'close' , common . mustCall ( ( ) => {
40
- if ( disconnect_count ++ < N )
40
+ if ( disconnectCount ++ < N )
41
41
c . connect ( common . PORT ) ; // reconnect
42
42
} , N + 1 ) ) ;
43
43
44
44
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 ) ;
47
47
} ) ;
You can’t perform that action at this time.
0 commit comments