Skip to content

Commit cadb261

Browse files
cjihrigMylesBorins
authored andcommitted
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 <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent 2b93333 commit cadb261

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ assert.equal(child.stderr, null);
1616

1717
options = {stdio: 'ignore'};
1818
child = common.spawnSyncCat(options);
19-
assert.deepEqual(options, {stdio: 'ignore'});
19+
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)