We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a09a1e commit 3bb5ba1Copy full SHA for 3bb5ba1
1 file changed
test/parallel/test-cluster-concurrent-disconnect.js
@@ -26,7 +26,7 @@ if (cluster.isPrimary) {
26
// to send messages when the worker is disconnecting.
27
worker.on('error', (err) => {
28
assert.strictEqual(err.syscall, 'write');
29
- assert.strictEqual(err.code, 'EPIPE');
+ assert(['EPIPE', 'ENOTCONN'].includes(err.code), err);
30
});
31
32
worker.once('disconnect', common.mustCall(() => {
0 commit comments