(worker)
| 77 | } |
| 78 | |
| 79 | function setupWorker(worker) { |
| 80 | let received = 0; |
| 81 | |
| 82 | worker.on('message', common.mustCall((msg) => { |
| 83 | received = msg.received; |
| 84 | worker.disconnect(); |
| 85 | })); |
| 86 | |
| 87 | worker.on('exit', common.mustCall(() => { |
| 88 | assert.strictEqual(received, PACKETS_PER_WORKER); |
| 89 | })); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 |
no test coverage detected