From 23e6d125d06d14bf36622e49ad5469f482cafe62 Mon Sep 17 00:00:00 2001 From: Kurt Hsu Date: Wed, 22 Nov 2017 16:21:37 +0800 Subject: [PATCH] test: use common.crashOnUnhandledRejection to test-promise.js --- test/async-hooks/test-promise.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/async-hooks/test-promise.js b/test/async-hooks/test-promise.js index f7dbe64b890970..0243c7fb885cb9 100644 --- a/test/async-hooks/test-promise.js +++ b/test/async-hooks/test-promise.js @@ -1,6 +1,10 @@ 'use strict'; const common = require('../common'); +common.crashOnUnhandledRejection(); + +// This test ensures that the promise handling resolution correctly + const assert = require('assert'); const initHooks = require('./init-hooks'); const { checkInvocations } = require('./hook-checks');