diff options
author | Chris Bystrek <chris.bystrek@gmail.com> | 2016-12-01 10:46:00 -0600 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-12-07 07:33:43 -0800 |
commit | 7d26c2799b6f8e6041c9c893ad18ccb85b43d670 (patch) | |
tree | 88d39fbf22ae5a4b359045f3c8e780577323817f /test/parallel/test-child-process-detached.js | |
parent | 4f486aa6617a642f2ff6e3e6e43f5e27c4bc8388 (diff) | |
download | android-node-v8-7d26c2799b6f8e6041c9c893ad18ccb85b43d670.tar.gz android-node-v8-7d26c2799b6f8e6041c9c893ad18ccb85b43d670.tar.bz2 android-node-v8-7d26c2799b6f8e6041c9c893ad18ccb85b43d670.zip |
test: assert.throws() should include a RegExp
PR-URL: https://github.com/nodejs/node/pull/9976
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-child-process-detached.js')
-rw-r--r-- | test/parallel/test-child-process-detached.js | 2 |
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); }); |