File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
- - " 11 "
3
+ - " 12 "
4
4
- " 10"
5
5
- " 8"
6
6
os :
Original file line number Diff line number Diff line change @@ -172,19 +172,17 @@ const runTests = function(baseopts) {
172
172
173
173
await waitForWatcher ( watcher ) ;
174
174
175
- ( async ( ) => {
176
- for ( let path of paths . slice ( 0 , 5 ) ) {
177
- await write ( path , Date . now ( ) ) ;
178
- }
179
- await delay ( 100 ) ;
180
- for ( let path of paths . slice ( 5 ) ) {
181
- await write ( path , Date . now ( ) ) ;
182
- }
183
- delay ( ) ;
184
- } ) ( ) ;
175
+ for ( let path of paths . slice ( 0 , 5 ) ) {
176
+ await write ( path , Date . now ( ) ) ;
177
+ }
178
+ await delay ( 100 ) ;
179
+ for ( let path of paths . slice ( 5 ) ) {
180
+ await write ( path , Date . now ( ) ) ;
181
+ }
185
182
186
183
await waitFor ( [ [ spy , 4 ] ] ) ;
187
184
await waitFor ( [ [ spy , 9 ] ] ) ;
185
+ await delay ( 1000 ) ;
188
186
paths . forEach ( path => {
189
187
spy . should . have . been . calledWith ( path ) ;
190
188
} ) ;
@@ -281,6 +279,7 @@ const runTests = function(baseopts) {
281
279
await waitFor ( [ [ spy , 11 ] ] ) ;
282
280
await waitFor ( [ [ spy , 22 ] ] ) ;
283
281
await waitFor ( [ [ spy , 33 ] ] ) ;
282
+ await delay ( 1000 ) ;
284
283
285
284
spy . should . have . been . calledWith ( test1Path ) ;
286
285
spy . should . have . been . calledWith ( test2Path ) ;
You can’t perform that action at this time.
0 commit comments