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: #9976
Reviewed-By: Prince John Wesley <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
cByst authored and addaleax committed Dec 8, 2016
1 parent 6f2f02d commit d8dc890
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 d8dc890

Please sign in to comment.