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 <myles.borins@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
LarryLuTW authored and MylesBorins committed Dec 12, 2017
1 parent a536b03 commit 2d2e780
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 2d2e780

Please sign in to comment.