Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 15bd489

Browse filesBrowse files
cjihrigevanlucas
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 <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent 0884c70 commit 15bd489
Copy full SHA for 15bd489

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-child-process-stdio.js
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.