Skip to content

Commit

Permalink
test: use common.crashOnUnhandledRejection
Browse files Browse the repository at this point in the history
Add common.crashOnUnhandledRejection to
test-async-wrap-promise-after-enabled.js

PR-URL: #17231
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
jimliu7434 authored and gibfahn committed Dec 20, 2017
1 parent 8a0a265 commit 0e4a681
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-async-wrap-promise-after-enabled.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const async_hooks = require('async_hooks');

const seenEvents = [];

common.crashOnUnhandledRejection();

const p = new Promise((resolve) => resolve(1));
p.then(() => seenEvents.push('then'));

Expand Down

0 comments on commit 0e4a681

Please sign in to comment.