@@ -167,7 +167,9 @@ describe('TestCache', () => {
167
167
expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
168
168
169
169
compiler1 . close ( ( ) => {
170
- resolve ( ) ;
170
+ process . nextTick ( ( ) => {
171
+ resolve ( ) ;
172
+ } ) ;
171
173
} ) ;
172
174
} ) ;
173
175
} ) ;
@@ -207,7 +209,9 @@ describe('TestCache', () => {
207
209
expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
208
210
209
211
compiler2 . close ( ( ) => {
210
- resolve ( ) ;
212
+ process . nextTick ( ( ) => {
213
+ resolve ( ) ;
214
+ } ) ;
211
215
} ) ;
212
216
} ) ;
213
217
} ) ;
@@ -274,7 +278,9 @@ describe('TestCache', () => {
274
278
expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
275
279
276
280
compiler1 . close ( ( ) => {
277
- resolve ( ) ;
281
+ process . nextTick ( ( ) => {
282
+ resolve ( ) ;
283
+ } ) ;
278
284
} ) ;
279
285
} ) ;
280
286
} ) ;
@@ -316,7 +322,9 @@ describe('TestCache', () => {
316
322
expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
317
323
318
324
compiler2 . close ( ( ) => {
319
- resolve ( ) ;
325
+ process . nextTick ( ( ) => {
326
+ resolve ( ) ;
327
+ } ) ;
320
328
} ) ;
321
329
} ) ;
322
330
} ) ;
@@ -385,7 +393,9 @@ describe('TestCache', () => {
385
393
expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
386
394
387
395
compiler1 . close ( ( ) => {
388
- resolve ( ) ;
396
+ process . nextTick ( ( ) => {
397
+ resolve ( ) ;
398
+ } ) ;
389
399
} ) ;
390
400
} ) ;
391
401
} ) ;
@@ -428,7 +438,9 @@ describe('TestCache', () => {
428
438
expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
429
439
430
440
compiler2 . close ( ( ) => {
431
- resolve ( ) ;
441
+ process . nextTick ( ( ) => {
442
+ resolve ( ) ;
443
+ } ) ;
432
444
} ) ;
433
445
} ) ;
434
446
} ) ;
@@ -497,7 +509,9 @@ describe('TestCache', () => {
497
509
expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
498
510
499
511
compiler1 . close ( ( ) => {
500
- resolve ( ) ;
512
+ process . nextTick ( ( ) => {
513
+ resolve ( ) ;
514
+ } ) ;
501
515
} ) ;
502
516
} ) ;
503
517
} ) ;
@@ -540,7 +554,9 @@ describe('TestCache', () => {
540
554
expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
541
555
542
556
compiler2 . close ( ( ) => {
543
- resolve ( ) ;
557
+ process . nextTick ( ( ) => {
558
+ resolve ( ) ;
559
+ } ) ;
544
560
} ) ;
545
561
} ) ;
546
562
} ) ;
0 commit comments