| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ if (cluster.isWorker) { | |||
| 62 | 62 | // Disconnect worker when it is ready | |
| 63 | 63 | worker.once('listening', common.mustCall(() => { | |
| 64 | 64 | 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`); | ||
| 66 | 66 | })); | |
| 67 | 67 | ||
| 68 | 68 | // Check cluster events | |
@@ -101,10 +101,8 @@ if (cluster.isWorker) { | |||
| 101 | 101 | assert.ok(c.emitExit, 'Exit event did not emit'); | |
| 102 | 102 | ||
| 103 | 103 | // 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); | ||
| 108 | 106 | ||
| 109 | 107 | // is process alive | |
| 110 | 108 | assert.ok(w.died, 'The worker did not die'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments