Skip to content

Commit

Permalink
test: add test for attempted multiple IPC channels
Browse files Browse the repository at this point in the history
This error was previously not covered. This commit adds coverage.

PR-URL: #8159
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
  • Loading branch information
cjihrig committed Aug 20, 2016
1 parent db6253f commit ae4ce9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parallel/test-child-process-stdio.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ assert.equal(child.stderr, null);
options = {stdio: 'ignore'};
child = common.spawnSyncCat(options);
assert.deepStrictEqual(options, {stdio: 'ignore'});

assert.throws(() => {
common.spawnPwd({stdio: ['pipe', 'pipe', 'pipe', 'ipc', 'ipc']});
}, /^Error: Child process can have only one IPC pipe$/);

0 comments on commit ae4ce9f

Please sign in to comment.