Skip to content

Commit e3db509

Browse files
Kurt HsuMylesBorins
Kurt Hsu
authored andcommitted
test: use common.crashOnUnhandledRejection
PR-URL: #17229 Reviewed-By: James M Snell <[email protected]>
1 parent 017379e commit e3db509

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/async-hooks/test-promise.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
'use strict';
22

33
const common = require('../common');
4+
45
const assert = require('assert');
56
const initHooks = require('./init-hooks');
67
const { checkInvocations } = require('./hook-checks');
78

9+
common.crashOnUnhandledRejection();
10+
811
const hooks = initHooks();
912

1013
hooks.enable();

0 commit comments

Comments
 (0)