Skip to content

Commit

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

PR-URL: #17232
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>
  • Loading branch information
sorarize authored and gibfahn committed Dec 19, 2017
1 parent 474f857 commit 8695511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-microtask-queue-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.

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

common.crashOnUnhandledRejection();

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

0 comments on commit 8695511

Please sign in to comment.