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: #997
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 MylesBorins committed Dec 21, 2016
1 parent ea0d308 commit c2bc38f
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(persistentPid !== -1);
assert.throws(function() {
process.kill(child.pid);
});
}, /^Error: kill ESRCH$/);
assert.doesNotThrow(function() {
process.kill(persistentPid);
});
Expand Down

0 comments on commit c2bc38f

Please sign in to comment.