aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-detached.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-child-process-detached.js')
-rw-r--r--test/parallel/test-child-process-detached.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-detached.js b/test/parallel/test-child-process-detached.js
index d550401fae..43cae6eeb0 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.notStrictEqual(persistentPid, -1);
assert.throws(function() {
process.kill(child.pid);
- });
+ }, /^Error: kill ESRCH$/);
assert.doesNotThrow(function() {
process.kill(persistentPid);
});