Skip to content

Commit 75ad37c

Browse files
Kcin1993gibfahn
authored andcommitted
test: use common.crashOnUnhandledRejection
Add common.crashOnUnhandledRejection to path: - test/parallel/test-microtask-queue-run-immediate-domain.js PR-URL: #17235 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b63f51a commit 75ad37c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-microtask-queue-run-immediate-domain.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
33
const assert = require('assert');
44

55
// Requiring the domain module here changes the function that is used by node to
@@ -9,6 +9,8 @@ const assert = require('assert');
99
// removed.
1010
require('domain');
1111

12+
common.crashOnUnhandledRejection();
13+
1214
function enqueueMicrotask(fn) {
1315
Promise.resolve().then(fn);
1416
}

0 commit comments

Comments
 (0)