File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- // test that errors propagated from cluster workers are properly
2
+ // Test that errors propagated from cluster workers are properly
3
3
// received in their master. Creates an EADDRINUSE condition by forking
4
4
// a process in child cluster and propagates the error to the master.
5
5
@@ -31,15 +31,12 @@ if (cluster.isMaster) {
31
31
console . log ( 'master exited' ) ;
32
32
try {
33
33
fs . unlinkSync ( common . PIPE ) ;
34
- } catch ( ex ) {
35
- if ( ex . code !== 'ENOENT' ) {
36
- throw ex ;
37
- }
34
+ } catch ( e ) {
38
35
}
39
36
} ) ;
40
37
41
38
} else {
42
- const cp = fork ( common . fixturesDir + '/listen-on-socket-and-exit.js' ,
39
+ var cp = fork ( common . fixturesDir + '/listen-on-socket-and-exit.js' ,
43
40
{ stdio : 'inherit' } ) ;
44
41
45
42
// message from the child indicates it's ready and listening
You can’t perform that action at this time.
0 commit comments