@@ -40,29 +40,28 @@ if (cluster.isWorker) {
40
40
41
41
} else if ( cluster . isMaster ) {
42
42
43
- const KILL_SIGNAL = 'SIGKILL' ,
44
- expected_results = {
45
- cluster_emitDisconnect : [ 1 , "the cluster did not emit 'disconnect'" ] ,
46
- cluster_emitExit : [ 1 , "the cluster did not emit 'exit'" ] ,
47
- cluster_exitCode : [ null , 'the cluster exited w/ incorrect exitCode' ] ,
48
- cluster_signalCode : [ KILL_SIGNAL ,
49
- 'the cluster exited w/ incorrect signalCode' ] ,
50
- worker_emitDisconnect : [ 1 , "the worker did not emit 'disconnect'" ] ,
51
- worker_emitExit : [ 1 , "the worker did not emit 'exit'" ] ,
52
- worker_state : [ 'disconnected' , 'the worker state is incorrect' ] ,
53
- worker_exitedAfter : [ false ,
54
- 'the .exitedAfterDisconnect flag is incorrect' ] ,
55
- worker_died : [ true , 'the worker is still running' ] ,
56
- worker_exitCode : [ null , 'the worker exited w/ incorrect exitCode' ] ,
57
- worker_signalCode : [ KILL_SIGNAL ,
58
- 'the worker exited w/ incorrect signalCode' ]
59
- } ,
60
- results = {
61
- cluster_emitDisconnect : 0 ,
62
- cluster_emitExit : 0 ,
63
- worker_emitDisconnect : 0 ,
64
- worker_emitExit : 0
65
- } ;
43
+ const KILL_SIGNAL = 'SIGKILL' ;
44
+ const expected_results = {
45
+ cluster_emitDisconnect : [ 1 , "the cluster did not emit 'disconnect'" ] ,
46
+ cluster_emitExit : [ 1 , "the cluster did not emit 'exit'" ] ,
47
+ cluster_exitCode : [ null , 'the cluster exited w/ incorrect exitCode' ] ,
48
+ cluster_signalCode : [ KILL_SIGNAL ,
49
+ 'the cluster exited w/ incorrect signalCode' ] ,
50
+ worker_emitDisconnect : [ 1 , "the worker did not emit 'disconnect'" ] ,
51
+ worker_emitExit : [ 1 , "the worker did not emit 'exit'" ] ,
52
+ worker_state : [ 'disconnected' , 'the worker state is incorrect' ] ,
53
+ worker_exitedAfter : [ false , 'the .exitedAfterDisconnect flag is incorrect' ] ,
54
+ worker_died : [ true , 'the worker is still running' ] ,
55
+ worker_exitCode : [ null , 'the worker exited w/ incorrect exitCode' ] ,
56
+ worker_signalCode : [ KILL_SIGNAL ,
57
+ 'the worker exited w/ incorrect signalCode' ]
58
+ } ;
59
+ const results = {
60
+ cluster_emitDisconnect : 0 ,
61
+ cluster_emitExit : 0 ,
62
+ worker_emitDisconnect : 0 ,
63
+ worker_emitExit : 0
64
+ } ;
66
65
67
66
68
67
// start worker
0 commit comments