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 20, 2017
1 parent 90630ae commit 92d4d1e
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 92d4d1e

Please sign in to comment.