test: use crashOnUnhandledRejection
Add common.crashOnUnhandledRejection to test/parallel/test-async-hooks-disable-during-promise.js PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
cf5ad75bc4
commit
5d6693fc07
@ -1,6 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
const async_hooks = require('async_hooks');
|
const async_hooks = require('async_hooks');
|
||||||
|
common.crashOnUnhandledRejection();
|
||||||
|
|
||||||
const hook = async_hooks.createHook({
|
const hook = async_hooks.createHook({
|
||||||
init: common.mustCall(2),
|
init: common.mustCall(2),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user