Lines Matching refs:worker
8 // `AssertionError [ERR_ASSERTION]: worker 2 failed to bind port`
30 const worker = cluster.fork();
31 worker.on('error', (err) => assert.fail(err));
33 worker.on('online', () => {
34 worker.on('message', common.mustCall((message) => {
38 worker.on('exit', common.mustCall((code, signal) => {
40 // worker 2 should fail because of port clash with `server`
42 return assert.fail(`worker ${worker.id} failed to bind port`);
46 worker.on('disconnect', common.mustCall(res));
51 cluster.on('online', common.mustCall((worker) => worker.send('dbgport'), 2));