Skip to content

Commit

Permalink
test: assert.throws() should include a RegExp
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
cByst authored and Trott committed Dec 7, 2016
1 parent 4f486aa commit 7d26c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-detached.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 7d26c27

Please sign in to comment.