mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -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
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!');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user