Skip to content

Commit 9bf2da3

Browse files
roth1002MylesBorins
authored andcommitted
test: use crashOnUnhandledRejection
Add common.crashOnUnhandledRejection to test/parallell/test-microtask-queue-run-domain.js PR-URL: #17226 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 582f1f0 commit 9bf2da3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
23+
const common = require('../common');
2424
const assert = require('assert');
2525

2626
// Requiring the domain module here changes the function that is used by node to
@@ -30,6 +30,8 @@ const assert = require('assert');
3030
// removed.
3131
require('domain');
3232

33+
common.crashOnUnhandledRejection();
34+
3335
function enqueueMicrotask(fn) {
3436
Promise.resolve().then(fn);
3537
}

0 commit comments

Comments
 (0)