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 authored and evanlucas committed Aug 24, 2016
1 parent 0884c70 commit 15bd489
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 15bd489

Please sign in to comment.