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>
This commit is contained in:
weyj4 authored and Myles Borins committed 2017-01-31 20:04:30 -05:00
1 parent 14c28ebcf1
commit f412b1fcfd
1 file changed
+4 -4
@@ -58,7 +58,7 @@ const tests = [
d.run(function() {
setTimeout(function() {
throw new Error('boom!');
});
}, 1);
});
},
@@ -87,7 +87,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!');
});
});
@@ -104,7 +104,7 @@ const tests = [
d2.run(function() {
setTimeout(function() {
throw new Error('boom!');
});
}, 1);
});
});
},
@@ -151,7 +151,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!');
});
});