aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-fork-stdio.js
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2017-08-23 15:20:54 -0700
committerJon Moss <me@jonathanmoss.me>2017-11-29 18:14:27 -0500
commitb1e6c0d44c075d8d3fee6c60fc92b90876700a30 (patch)
tree1bd45058115c8325d6468fa974223a272a75f63b /test/parallel/test-child-process-fork-stdio.js
parent59e48329d00cd91f6836cd91bcb8aca92acac1f6 (diff)
downloadandroid-node-v8-b1e6c0d44c075d8d3fee6c60fc92b90876700a30.tar.gz
android-node-v8-b1e6c0d44c075d8d3fee6c60fc92b90876700a30.tar.bz2
android-node-v8-b1e6c0d44c075d8d3fee6c60fc92b90876700a30.zip
errors, child_process: use internal/errors codes
PR-URL: https://github.com/nodejs/node/pull/14998 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Diffstat (limited to 'test/parallel/test-child-process-fork-stdio.js')
-rw-r--r--test/parallel/test-child-process-fork-stdio.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-child-process-fork-stdio.js b/test/parallel/test-child-process-fork-stdio.js
index be0bdf19c3..d8e7abfe28 100644
--- a/test/parallel/test-child-process-fork-stdio.js
+++ b/test/parallel/test-child-process-fork-stdio.js
@@ -19,9 +19,9 @@ if (process.argv[2] === 'child') {
process.send(data);
});
} else {
- assert.throws(() => {
- cp.fork(__filename, { stdio: ['pipe', 'pipe', 'pipe', 'pipe'] });
- }, /Forked processes must have an IPC channel/);
+ common.expectsError(
+ () => cp.fork(__filename, { stdio: ['pipe', 'pipe', 'pipe', 'pipe'] }),
+ { code: 'ERR_CHILD_PROCESS_IPC_REQUIRED', type: Error });
let ipc = '';
let stderr = '';