@@ -210,7 +210,7 @@ describeSpec('Listens:', [], () => {
210210 const query1 = query ( 'collection' ) ;
211211
212212 return spec ( )
213- . withEagerGCForMemoryPersistence ( false )
213+ . ensureManualLruGC ( )
214214 . userListens ( query1 )
215215 . watchAcks ( query1 )
216216 . watchRemoves (
@@ -265,7 +265,7 @@ describeSpec('Listens:', [], () => {
265265 return (
266266 spec ( )
267267 // Disable GC so the cache persists across listens.
268- . withEagerGCForMemoryPersistence ( false )
268+ . ensureManualLruGC ( )
269269 . userListens ( query1 )
270270 . watchAcksFull ( query1 , 1000 , docAv1 )
271271 . expectEvents ( query1 , { added : [ docAv1 ] } )
@@ -301,7 +301,7 @@ describeSpec('Listens:', [], () => {
301301 return (
302302 spec ( )
303303 // Disable GC so the cache persists across listens.
304- . withEagerGCForMemoryPersistence ( false )
304+ . ensureManualLruGC ( )
305305 . userListens ( query1 )
306306 . watchAcksFull ( query1 , 1000 , docAv1 )
307307 . expectEvents ( query1 , { added : [ docAv1 ] } )
@@ -334,7 +334,7 @@ describeSpec('Listens:', [], () => {
334334 return (
335335 spec ( )
336336 // Disable GC so the cache persists across listens.
337- . withEagerGCForMemoryPersistence ( false )
337+ . ensureManualLruGC ( )
338338 . userListens ( visibleQuery )
339339 . watchAcksFull ( visibleQuery , 1000 , docAv1 )
340340 . expectEvents ( visibleQuery , { added : [ docAv1 ] } )
@@ -377,7 +377,7 @@ describeSpec('Listens:', [], () => {
377377 return (
378378 spec ( )
379379 // Disable GC so the cache persists across listens.
380- . withEagerGCForMemoryPersistence ( false )
380+ . ensureManualLruGC ( )
381381 . userListens ( visibleQuery )
382382 . watchAcksFull ( visibleQuery , 1000 , docAv1 )
383383 . expectEvents ( visibleQuery , { added : [ docAv1 ] } )
@@ -474,7 +474,7 @@ describeSpec('Listens:', [], () => {
474474 const docB = doc ( 'collection/b' , 1000 , { key : 'a' } ) ;
475475 return (
476476 spec ( )
477- . withEagerGCForMemoryPersistence ( false )
477+ . ensureManualLruGC ( )
478478 // Add a collection query with two documents, one of which gets deleted
479479 // (the second document guarantees that we later raise an event from
480480 // cache).
@@ -508,7 +508,7 @@ describeSpec('Listens:', [], () => {
508508 const docA = doc ( 'collection/a' , 1000 , { key : 'a' } ) ;
509509 const deletedDocA = deletedDoc ( 'collection/a' , 2000 ) ;
510510 return spec ( )
511- . withEagerGCForMemoryPersistence ( false )
511+ . ensureManualLruGC ( )
512512 . userListens ( query1 )
513513 . watchAcksFull ( query1 , 1000 , docA )
514514 . expectEvents ( query1 , { added : [ docA ] } )
@@ -528,7 +528,7 @@ describeSpec('Listens:', [], () => {
528528 const docA = doc ( 'collection/a' , 1000 , { key : 'a' } ) ;
529529 const docB = doc ( 'collection/b' , 2000 , { key : 'b' } ) ;
530530 return spec ( )
531- . withEagerGCForMemoryPersistence ( false )
531+ . ensureManualLruGC ( )
532532 . userListens ( query1 )
533533 . watchAcksFull ( query1 , 1000 , docA )
534534 . expectEvents ( query1 , { added : [ docA ] } )
@@ -548,7 +548,7 @@ describeSpec('Listens:', [], () => {
548548 const docA = doc ( 'collection/a' , 1000 , { key : 'a' } ) ;
549549 return (
550550 spec ( )
551- . withEagerGCForMemoryPersistence ( false )
551+ . ensureManualLruGC ( )
552552 . userListens ( query1 )
553553 . watchAcks ( query1 )
554554 . watchSends ( { affects : [ query1 ] } , docA )
@@ -570,7 +570,7 @@ describeSpec('Listens:', [], () => {
570570 const query1 = query ( 'collection' ) ;
571571
572572 return spec ( )
573- . withEagerGCForMemoryPersistence ( false )
573+ . ensureManualLruGC ( )
574574 . userListens ( query1 )
575575 . watchRemoves (
576576 query1 ,
@@ -586,7 +586,7 @@ describeSpec('Listens:', [], () => {
586586 const query1 = query ( 'collection' ) ;
587587 const docA = doc ( 'collection/a' , 2000 , { key : 'a' } ) ;
588588 return spec ( )
589- . withEagerGCForMemoryPersistence ( false )
589+ . ensureManualLruGC ( )
590590 . userListens ( query1 )
591591 . watchAcksFull ( query1 , 1000 )
592592 . expectEvents ( query1 , { } )
@@ -606,7 +606,7 @@ describeSpec('Listens:', [], () => {
606606 const query1 = query ( 'collection' , filter ( 'array' , 'array-contains' , 42 ) ) ;
607607 const docA = doc ( 'collection/a' , 2000 , { foo : 'bar' , array : [ 1 , 42 , 3 ] } ) ;
608608 return spec ( )
609- . withEagerGCForMemoryPersistence ( false )
609+ . ensureManualLruGC ( )
610610 . userListens ( query1 )
611611 . watchAcksFull ( query1 , 1000 )
612612 . expectEvents ( query1 , { } )
@@ -628,7 +628,7 @@ describeSpec('Listens:', [], () => {
628628
629629 return (
630630 spec ( )
631- . withEagerGCForMemoryPersistence ( false )
631+ . ensureManualLruGC ( )
632632 . userListens ( query1 )
633633 . watchAcksFull ( query1 , 1000 , docA )
634634 . expectEvents ( query1 , { added : [ docA ] } )
@@ -657,7 +657,7 @@ describeSpec('Listens:', [], () => {
657657
658658 return (
659659 spec ( )
660- . withEagerGCForMemoryPersistence ( false )
660+ . ensureManualLruGC ( )
661661 . userListens ( query1 )
662662 . watchAcksFull ( query1 , 1000 , docA )
663663 . expectEvents ( query1 , { added : [ docA ] } )
@@ -690,7 +690,7 @@ describeSpec('Listens:', [], () => {
690690
691691 return (
692692 spec ( )
693- . withEagerGCForMemoryPersistence ( false )
693+ . ensureManualLruGC ( )
694694 . userListens ( query1 )
695695 . watchAcksFull ( query1 , initialVersion , docA )
696696 . expectEvents ( query1 , { added : [ docA ] } )
@@ -1704,7 +1704,7 @@ describeSpec('Listens:', [], () => {
17041704 return (
17051705 spec ( )
17061706 // Disable GC so the cache persists across listens.
1707- . withEagerGCForMemoryPersistence ( false )
1707+ . ensureManualLruGC ( )
17081708 // Populate the cache with the empty query results.
17091709 . userListens ( query1 )
17101710 . watchAcksFull ( query1 , 1000 )
@@ -1731,7 +1731,7 @@ describeSpec('Listens:', [], () => {
17311731 return (
17321732 spec ( )
17331733 // Disable GC so the cache persists across listens.
1734- . withEagerGCForMemoryPersistence ( false )
1734+ . ensureManualLruGC ( )
17351735 // Populate the cache with the empty query results.
17361736 . userListens ( query1 )
17371737 . watchAcksFull ( query1 , 1000 , doc1 )
0 commit comments