@@ -167,7 +167,9 @@ describe('TestCache', () => {
167167 expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
168168
169169 compiler1 . close ( ( ) => {
170- resolve ( ) ;
170+ process . nextTick ( ( ) => {
171+ resolve ( ) ;
172+ } ) ;
171173 } ) ;
172174 } ) ;
173175 } ) ;
@@ -207,7 +209,9 @@ describe('TestCache', () => {
207209 expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
208210
209211 compiler2 . close ( ( ) => {
210- resolve ( ) ;
212+ process . nextTick ( ( ) => {
213+ resolve ( ) ;
214+ } ) ;
211215 } ) ;
212216 } ) ;
213217 } ) ;
@@ -274,7 +278,9 @@ describe('TestCache', () => {
274278 expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
275279
276280 compiler1 . close ( ( ) => {
277- resolve ( ) ;
281+ process . nextTick ( ( ) => {
282+ resolve ( ) ;
283+ } ) ;
278284 } ) ;
279285 } ) ;
280286 } ) ;
@@ -316,7 +322,9 @@ describe('TestCache', () => {
316322 expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
317323
318324 compiler2 . close ( ( ) => {
319- resolve ( ) ;
325+ process . nextTick ( ( ) => {
326+ resolve ( ) ;
327+ } ) ;
320328 } ) ;
321329 } ) ;
322330 } ) ;
@@ -385,7 +393,9 @@ describe('TestCache', () => {
385393 expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
386394
387395 compiler1 . close ( ( ) => {
388- resolve ( ) ;
396+ process . nextTick ( ( ) => {
397+ resolve ( ) ;
398+ } ) ;
389399 } ) ;
390400 } ) ;
391401 } ) ;
@@ -428,7 +438,9 @@ describe('TestCache', () => {
428438 expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
429439
430440 compiler2 . close ( ( ) => {
431- resolve ( ) ;
441+ process . nextTick ( ( ) => {
442+ resolve ( ) ;
443+ } ) ;
432444 } ) ;
433445 } ) ;
434446 } ) ;
@@ -497,7 +509,9 @@ describe('TestCache', () => {
497509 expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
498510
499511 compiler1 . close ( ( ) => {
500- resolve ( ) ;
512+ process . nextTick ( ( ) => {
513+ resolve ( ) ;
514+ } ) ;
501515 } ) ;
502516 } ) ;
503517 } ) ;
@@ -540,7 +554,9 @@ describe('TestCache', () => {
540554 expect ( stats . compilation . errors ) . toHaveLength ( 0 ) ;
541555
542556 compiler2 . close ( ( ) => {
543- resolve ( ) ;
557+ process . nextTick ( ( ) => {
558+ resolve ( ) ;
559+ } ) ;
544560 } ) ;
545561 } ) ;
546562 } ) ;
0 commit comments