mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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:
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!');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user