test: add test for attempted multiple IPC channels
This error was previously not covered. This commit adds coverage. PR-URL: https://github.com/nodejs/node/pull/8159 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
This commit is contained in:
parent
db6253f94a
commit
ae4ce9fe73
@ -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$/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user