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 23, 2017
1 parent ffbd630 commit b6c88d6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const tests = [
d.run(function() {
setTimeout(function() {
throw new Error('boom!');
});
}, 1);
});
},

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

0 comments on commit b6c88d6

Please sign in to comment.