From ef6d68c2f93be8396075d562969daf53dea0a42b 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 PR-URL: https://github.com/nodejs/node/pull/17229 Reviewed-By: James M Snell --- test/async-hooks/test-promise.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/async-hooks/test-promise.js b/test/async-hooks/test-promise.js index f7dbe64b890970..2ee64962131005 100644 --- a/test/async-hooks/test-promise.js +++ b/test/async-hooks/test-promise.js @@ -1,10 +1,13 @@ 'use strict'; const common = require('../common'); + const assert = require('assert'); const initHooks = require('./init-hooks'); const { checkInvocations } = require('./hook-checks'); +common.crashOnUnhandledRejection(); + const hooks = initHooks(); hooks.enable();