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:
Chris Bystrek authored and Anna Henningsen committed 2016-12-08 02:11:08 +01:00
1 parent 6f2f02d5ad
commit d8dc890352
1 file changed
+1 -1
+1 -1
View File
@@ -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);
});