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>
This commit is contained in:
parent
4f486aa661
commit
7d26c2799b
@ -18,7 +18,7 @@ process.on('exit', function() {
|
|||||||
assert.notStrictEqual(persistentPid, -1);
|
assert.notStrictEqual(persistentPid, -1);
|
||||||
assert.throws(function() {
|
assert.throws(function() {
|
||||||
process.kill(child.pid);
|
process.kill(child.pid);
|
||||||
});
|
}, /^Error: kill ESRCH$/);
|
||||||
assert.doesNotThrow(function() {
|
assert.doesNotThrow(function() {
|
||||||
process.kill(persistentPid);
|
process.kill(persistentPid);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user