Skip to content

Commit ef6d68c

Browse files
Kurt Hsugibfahn
Kurt Hsu
authored andcommitted
test: use common.crashOnUnhandledRejection
PR-URL: #17229 Reviewed-By: James M Snell <[email protected]>
1 parent 2b5bc37 commit ef6d68c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/async-hooks/test-promise.js

Lines changed: 3 additions & 0 deletions
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)