Skip to content

Commit

Permalink
test: use crashOnUnhandledRejection
Browse files Browse the repository at this point in the history
Add common.crashOnUnhandledRejection to
test/parallel/test-async-hooks-disable-during-promise.js

PR-URL: #17220
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
imZack authored and gibfahn committed Dec 19, 2017
1 parent 7642577 commit a47b55d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-async-hooks-disable-during-promise.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
const common = require('../common');
const async_hooks = require('async_hooks');
common.crashOnUnhandledRejection();

const hook = async_hooks.createHook({
init: common.mustCall(2),
Expand Down

0 comments on commit a47b55d

Please sign in to comment.