Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d8dc890

Browse files
cBystaddaleax
authored andcommittedDec 8, 2016
test: assert.throws() should include a RegExp
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]>
1 parent 6f2f02d commit d8dc890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/parallel/test-child-process-detached.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ process.on('exit', function() {
1818
assert.notStrictEqual(persistentPid, -1);
1919
assert.throws(function() {
2020
process.kill(child.pid);
21-
});
21+
}, /^Error: kill ESRCH$/);
2222
assert.doesNotThrow(function() {
2323
process.kill(persistentPid);
2424
});

0 commit comments

Comments
 (0)
Please sign in to comment.