Skip to content

Commit ae4ce9f

Browse files
committed
test: add test for attempted multiple IPC channels
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>
1 parent db6253f commit ae4ce9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-child-process-stdio.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ assert.equal(child.stderr, null);
1717
options = {stdio: 'ignore'};
1818
child = common.spawnSyncCat(options);
1919
assert.deepStrictEqual(options, {stdio: 'ignore'});
20+
21+
assert.throws(() => {
22+
common.spawnPwd({stdio: ['pipe', 'pipe', 'pipe', 'ipc', 'ipc']});
23+
}, /^Error: Child process can have only one IPC pipe$/);

0 commit comments

Comments
 (0)