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 <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
  • Loading branch information
weyj4 authored and MylesBorins committed Feb 1, 2017
1 parent 14c28eb commit f412b1f
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 f412b1f

Please sign in to comment.