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 Santiago Gimeno committed 2016-12-17 09:36:30 +01:00
1 parent 9a347539a7
commit 4a257568e2
1 file changed
+4 -4
@@ -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!');
});
});