diff --git a/test/parallel/test-child-process-stdio.js b/test/parallel/test-child-process-stdio.js index f1e933aa134776..2daa7483714dc5 100644 --- a/test/parallel/test-child-process-stdio.js +++ b/test/parallel/test-child-process-stdio.js @@ -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$/);