Skip to content

Commit 4a25756

Browse files
weyj4santigimeno
authored andcommitted
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: #10291 Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent 9a34753 commit 4a25756

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-domain-no-error-handler-abort-on-uncaught.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const tests = [
3636
d.run(function() {
3737
setTimeout(function() {
3838
throw new Error('boom!');
39-
});
39+
}, 1);
4040
});
4141
},
4242

@@ -65,7 +65,7 @@ const tests = [
6565

6666
d.run(function() {
6767
var fs = require('fs');
68-
fs.exists('/non/existing/file', function onExists(exists) {
68+
fs.exists('/non/existing/file', function onExists() {
6969
throw new Error('boom!');
7070
});
7171
});
@@ -82,7 +82,7 @@ const tests = [
8282
d2.run(function() {
8383
setTimeout(function() {
8484
throw new Error('boom!');
85-
});
85+
}, 1);
8686
});
8787
});
8888
},
@@ -129,7 +129,7 @@ const tests = [
129129
d.run(function() {
130130
d2.run(function() {
131131
var fs = require('fs');
132-
fs.exists('/non/existing/file', function onExists(exists) {
132+
fs.exists('/non/existing/file', function onExists() {
133133
throw new Error('boom!');
134134
});
135135
});

0 commit comments

Comments
 (0)