From dc4aa89224ea143e60c09a2bab61274047ad0d04 Mon Sep 17 00:00:00 2001 From: jimliu7434 Date: Wed, 22 Nov 2017 16:45:34 +0800 Subject: [PATCH] test: use common.crashOnUnhandledRejection Add common.crashOnUnhandledRejection to test-async-wrap-promise-after-enabled.js PR-URL: https://github.com/nodejs/node/pull/17231 Reviewed-By: Myles Borins Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-async-wrap-promise-after-enabled.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-async-wrap-promise-after-enabled.js b/test/parallel/test-async-wrap-promise-after-enabled.js index 475411a3dae531..9535c080f246b7 100644 --- a/test/parallel/test-async-wrap-promise-after-enabled.js +++ b/test/parallel/test-async-wrap-promise-after-enabled.js @@ -9,6 +9,8 @@ const async_hooks = require('async_hooks'); const seenEvents = []; +common.crashOnUnhandledRejection(); + const p = new Promise((resolve) => resolve(1)); p.then(() => seenEvents.push('then'));