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 authored and juanarbol committed Oct 11, 2022
1 parent 9f7a728 commit a33daad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-concurrent-disconnect.js
Original file line number Diff line number Diff line change
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 a33daad

Please sign in to comment.