Skip to content

Commit

Permalink
test: fix test-cluster-concurrent-disconnect
Browse files Browse the repository at this point in the history
The error code, `ECONNRESET`, is observed on linux.
This commit adds it as an expected error code.

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com

PR-URL: #43961
Refs: https://ci.nodejs.org/job/node-test-commit-linux-containered/nodes=ubuntu1804_sharedlibs_withoutintl_x64/32901/testReport/junit/(root)/test/parallel_test_cluster_concurrent_disconnect/
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
daeyeon committed Jul 26, 2022
1 parent f0639eb commit 67bf674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-concurrent-disconnect.js
Expand Up @@ -29,7 +29,7 @@ if (cluster.isPrimary) {
if (common.isOSX) {
assert(['EPIPE', 'ENOTCONN'].includes(err.code), err);
} else {
assert.strictEqual(err.code, 'EPIPE');
assert(['EPIPE', 'ECONNRESET'].includes(err.code), err);
}
});

Expand Down

0 comments on commit 67bf674

Please sign in to comment.