File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 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');
2424const net = require ( 'net' ) ;
2525const assert = require ( 'assert' ) ;
2626const N = 20 ;
27- let client_error_count = 0 ;
28- let disconnect_count = 0 ;
27+ let clientErrorCount = 0 ;
28+ let disconnectCount = 0 ;
2929
3030const c = net . createConnection ( common . PORT ) ;
3131
3232c . on ( 'connect' , common . mustNotCall ( 'client should not have connected' ) ) ;
3333
3434c . on ( 'error' , common . mustCall ( ( e ) => {
35- client_error_count ++ ;
35+ clientErrorCount ++ ;
3636 assert . strictEqual ( e . code , 'ECONNREFUSED' ) ;
3737} , N + 1 ) ) ;
3838
3939c . on ( 'close' , common . mustCall ( ( ) => {
40- if ( disconnect_count ++ < N )
40+ if ( disconnectCount ++ < N )
4141 c . connect ( common . PORT ) ; // reconnect
4242} , N + 1 ) ) ;
4343
4444process . 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} ) ;
You can’t perform that action at this time.
0 commit comments