| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ if (cluster.isWorker) { | |||
| 58 | 58 | // Disconnect worker when it is ready | |
| 59 | 59 | worker.once('listening', common.mustCall(() => { | |
| 60 | 60 | const w = worker.disconnect(); | |
| 61 | - assert.strictEqual(worker, w, 'did not return a reference'); | ||
| 61 | + assert.strictEqual(worker, w, `${worker.id} did not return a reference`); | ||
| 62 | 62 | })); | |
| 63 | 63 | ||
| 64 | 64 | // Check cluster events | |
@@ -97,10 +97,8 @@ if (cluster.isWorker) { | |||
| 97 | 97 | assert.ok(c.emitExit, 'Exit event did not emit'); | |
| 98 | 98 | ||
| 99 | 99 | // flags | |
| 100 | - assert.strictEqual(w.state, 'disconnected', | ||
| 101 | - 'The state property was not set'); | ||
| 102 | - assert.strictEqual(w.voluntaryMode, true, | ||
| 103 | - 'Voluntary exit mode was not set'); | ||
| 100 | + assert.strictEqual(w.state, 'disconnected'); | ||
| 101 | + assert.strictEqual(w.voluntaryMode, true); | ||
| 104 | 102 | ||
| 105 | 103 | // is process alive | |
| 106 | 104 | assert.ok(w.died, 'The worker did not die'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments