Skip to content

Commit d9cfd54

Browse files
weyj4Italo A. Casas
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 24482d0 commit d9cfd54

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‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const tests = [
3636
d.run(function(){
3737
setTimeout(function(){
3838
thrownewError('boom!');
39-
});
39+
},1);
4040
});
4141
},
4242

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

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

0 commit comments

Comments
(0)