Skip to content

Commit dc4aa89

Browse files
jimliu7434MylesBorins
authored andcommitted
test: use common.crashOnUnhandledRejection
Add common.crashOnUnhandledRejection to test-async-wrap-promise-after-enabled.js PR-URL: #17231 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9bf2da3 commit dc4aa89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-async-wrap-promise-after-enabled.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const async_hooks = require('async_hooks');
99

1010
const seenEvents = [];
1111

12+
common.crashOnUnhandledRejection();
13+
1214
const p = new Promise((resolve) => resolve(1));
1315
p.then(() => seenEvents.push('then'));
1416

0 commit comments

Comments
 (0)