diff --git a/test/parallel/test-child-process-detached.js b/test/parallel/test-child-process-detached.js index 711c5d227d..9ad86c3a4f 100644 --- a/test/parallel/test-child-process-detached.js +++ b/test/parallel/test-child-process-detached.js @@ -18,7 +18,7 @@ process.on('exit', function() { assert(persistentPid !== -1); assert.throws(function() { process.kill(child.pid); - }); + }, /^Error: kill ESRCH$/); assert.doesNotThrow(function() { process.kill(persistentPid); });