File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ if (cluster.isWorker) {
6262 // Disconnect worker when it is ready
6363 worker . once ( 'listening' , common . mustCall ( ( ) => {
6464 const w = worker . disconnect ( ) ;
65- assert . strictEqual ( worker , w , ' did not return a reference' ) ;
65+ assert . strictEqual ( worker , w , ` ${ worker . id } did not return a reference` ) ;
6666 } ) ) ;
6767
6868 // Check cluster events
@@ -101,10 +101,8 @@ if (cluster.isWorker) {
101101 assert . ok ( c . emitExit , 'Exit event did not emit' ) ;
102102
103103 // flags
104- assert . strictEqual ( w . state , 'disconnected' ,
105- 'The state property was not set' ) ;
106- assert . strictEqual ( w . voluntaryMode , true ,
107- 'Voluntary exit mode was not set' ) ;
104+ assert . strictEqual ( w . state , 'disconnected' ) ;
105+ assert . strictEqual ( w . voluntaryMode , true ) ;
108106
109107 // is process alive
110108 assert . ok ( w . died , 'The worker did not die' ) ;
You can’t perform that action at this time.
0 commit comments