Browse Source

test: clean up domain-no-error-handler test

Added duration to setTimeout and removed extraneous callback args,
as per Rich Trott's instructions

PR-URL: https://github.com/nodejs/node/pull/10291
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
v6
weyj4 8 years ago
committed by Santiago Gimeno
parent
commit
4a257568e2
  1. 8
      test/parallel/test-domain-no-error-handler-abort-on-uncaught.js

8
test/parallel/test-domain-no-error-handler-abort-on-uncaught.js

@ -36,7 +36,7 @@ const tests = [
d.run(function() {
setTimeout(function() {
throw new Error('boom!');
});
}, 1);
});
},
@ -65,7 +65,7 @@ const tests = [
d.run(function() {
var fs = require('fs');
fs.exists('/non/existing/file', function onExists(exists) {
fs.exists('/non/existing/file', function onExists() {
throw new Error('boom!');
});
});
@ -82,7 +82,7 @@ const tests = [
d2.run(function() {
setTimeout(function() {
throw new Error('boom!');
});
}, 1);
});
});
},
@ -129,7 +129,7 @@ const tests = [
d.run(function() {
d2.run(function() {
var fs = require('fs');
fs.exists('/non/existing/file', function onExists(exists) {
fs.exists('/non/existing/file', function onExists() {
throw new Error('boom!');
});
});

Loading…
Cancel
Save