Skip to content

Commit f412b1f

Browse files
weyj4MylesBorins
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 <me@italoacasas.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent 14c28eb commit f412b1f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎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
@@ -58,7 +58,7 @@ const tests = [
5858
d.run(function(){
5959
setTimeout(function(){
6060
thrownewError('boom!');
61-
});
61+
},1);
6262
});
6363
},
6464

@@ -87,7 +87,7 @@ const tests = [
8787

8888
d.run(function(){
8989
varfs=require('fs');
90-
fs.exists('/non/existing/file',functiononExists(exists){
90+
fs.exists('/non/existing/file',functiononExists(){
9191
thrownewError('boom!');
9292
});
9393
});
@@ -104,7 +104,7 @@ const tests = [
104104
d2.run(function(){
105105
setTimeout(function(){
106106
thrownewError('boom!');
107-
});
107+
},1);
108108
});
109109
});
110110
},
@@ -151,7 +151,7 @@ const tests = [
151151
d.run(function(){
152152
d2.run(function(){
153153
varfs=require('fs');
154-
fs.exists('/non/existing/file',functiononExists(exists){
154+
fs.exists('/non/existing/file',functiononExists(){
155155
thrownewError('boom!');
156156
});
157157
});

0 commit comments

Comments
 (0)