Skip to content

Commit

Permalink
test: use crashOnUnhandledRejection
Browse files Browse the repository at this point in the history
Add common.crashOnUnhandledRejection to
test/parallell/test-microtask-queue-run-domain.js

PR-URL: nodejs#17226
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
roth1002 authored and jasnell committed Nov 22, 2017
1 parent 339e247 commit 1cc8ec3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-microtask-queue-run-domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');

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

common.crashOnUnhandledRejection();

function enqueueMicrotask(fn) {
Promise.resolve().then(fn);
}
Expand Down

0 comments on commit 1cc8ec3

Please sign in to comment.