Skip to content

Commit

Permalink
test: clean up domain-no-error-handler test
Browse files Browse the repository at this point in the history
Added duration to setTimeout and removed extraneous callback args,
as per Rich Trott's instructions

PR-URL: #10291
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
  • Loading branch information
weyj4 authored and MylesBorins committed Jan 24, 2017
1 parent 1daf312 commit 115e667
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const tests = [
d.run(function() {
setTimeout(function() {
throw new Error('boom!');
});
}, 1);
});
},

Expand Down Expand Up @@ -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!');
});
});
Expand All @@ -82,7 +82,7 @@ const tests = [
d2.run(function() {
setTimeout(function() {
throw new Error('boom!');
});
}, 1);
});
});
},
Expand Down Expand Up @@ -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!');
});
});
Expand Down

0 comments on commit 115e667

Please sign in to comment.