Skip to content

Commit

Permalink
test: add test on unhandled rejection
Browse files Browse the repository at this point in the history
PR-URL: #17228
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
LarryLuTW authored and gibfahn committed Dec 20, 2017
1 parent 040fe70 commit b4726fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-async-hooks-promise-enable-disable.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ let p_resource = null;
let p_er = null;
let p_inits = 0;

common.crashOnUnhandledRejection();

// Not useful to place common.mustCall() around 'exit' event b/c it won't be
// able to check it anway.
process.on('exit', (code) => {
Expand Down

0 comments on commit b4726fa

Please sign in to comment.