Skip to content

Commit ce40c70

Browse files
TrottMylesBorins
authored andcommitted
test: use error code rather than message in test
Use err.code checking instead of err.message checking in test-child-process-fork-closed-channel-segfault. PR-URL: #20859 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 3afeaaa commit ce40c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-child-process-fork-closed-channel-segfault.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const server = net
6666
send(function(err) {
6767
// Ignore errors when sending the second handle because the worker
6868
// may already have exited.
69-
if (err && err.message !== 'Channel closed') {
69+
if (err && err.code !== 'ERR_IPC_CHANNEL_CLOSED') {
7070
throw err;
7171
}
7272
});

0 commit comments

Comments
 (0)