From 934f4629504be3ef024f21f51661c9b799c21705 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 18 Aug 2016 11:29:55 -0400 Subject: [PATCH] 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 Reviewed-By: Santiago Gimeno --- test/parallel/test-child-process-stdio.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-child-process-stdio.js b/test/parallel/test-child-process-stdio.js index d5fe6d43b64d5c..2daa7483714dc5 100644 --- a/test/parallel/test-child-process-stdio.js +++ b/test/parallel/test-child-process-stdio.js @@ -16,4 +16,8 @@ assert.equal(child.stderr, null); options = {stdio: 'ignore'}; child = common.spawnSyncCat(options); -assert.deepEqual(options, {stdio: 'ignore'}); +assert.deepStrictEqual(options, {stdio: 'ignore'}); + +assert.throws(() => { + common.spawnPwd({stdio: ['pipe', 'pipe', 'pipe', 'ipc', 'ipc']}); +}, /^Error: Child process can have only one IPC pipe$/);