Skip to content

Commit

Permalink
make uncaughtException test more stable (#4107)
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Nov 26, 2019
1 parent 2e816fe commit 47dcc5f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/integration/fixtures/uncaught.fixture.js
Expand Up @@ -6,17 +6,17 @@
*/

it('fails exactly once when a global error is thrown first', function (done) {
setTimeout(function () {
process.nextTick(function () {
throw new Error('global error');
}, 0);
});
});

it('fails exactly once when a global error is thrown second', function (done) {
setTimeout(function () {
process.nextTick(function () {
done(new Error('test error'));
}, 0);
});

setTimeout(function () {
process.nextTick(function () {
throw new Error('global error');
}, 0);
});
});

0 comments on commit 47dcc5f

Please sign in to comment.