Skip to content

Commit df94616

Browse files
committed
Addressing Ben's comments
1 parent 584c40b commit df94616

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/parallel/test-cluster-eaccess.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
// test that errors propagated from cluster workers are properly
2+
// Test that errors propagated from cluster workers are properly
33
// received in their master. Creates an EADDRINUSE condition by forking
44
// a process in child cluster and propagates the error to the master.
55

@@ -31,15 +31,12 @@ if (cluster.isMaster) {
3131
console.log('master exited');
3232
try {
3333
fs.unlinkSync(common.PIPE);
34-
} catch (ex) {
35-
if (ex.code !== 'ENOENT') {
36-
throw ex;
37-
}
34+
} catch (e) {
3835
}
3936
});
4037

4138
} 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',
4340
{ stdio: 'inherit' });
4441

4542
// message from the child indicates it's ready and listening

0 commit comments

Comments
 (0)