@@ -27,7 +27,7 @@ describeSpec('Listens:', [], () => {
27
27
// Obviously this test won't hold with offline persistence enabled.
28
28
specTest (
29
29
'Contents of query are cleared when listen is removed.' ,
30
- [ 'no-lru ' ] ,
30
+ [ 'eager-gc ' ] ,
31
31
'Explicitly tests eager GC behavior' ,
32
32
( ) => {
33
33
const query = Query . atPath ( path ( 'collection' ) ) ;
@@ -228,7 +228,7 @@ describeSpec('Listens:', [], () => {
228
228
// This would only happen when we use a resume token, but omitted for brevity.
229
229
specTest (
230
230
'Will gracefully handle watch stream reverting snapshots (with restart)' ,
231
- [ ] ,
231
+ [ 'durable-persistence' ] ,
232
232
( ) => {
233
233
const query = Query . atPath ( path ( 'collection' ) ) ;
234
234
const docAv1 = doc ( 'collection/a' , 1000 , { v : 'v1000' } ) ;
@@ -570,34 +570,38 @@ describeSpec('Listens:', [], () => {
570
570
) ;
571
571
} ) ;
572
572
573
- specTest ( 'Omits global resume tokens for a short while' , [ ] , ( ) => {
574
- const query = Query . atPath ( path ( 'collection' ) ) ;
575
- const docA = doc ( 'collection/a' , 1000 , { key : 'a' } ) ;
573
+ specTest (
574
+ 'Omits global resume tokens for a short while' ,
575
+ [ 'durable-persistence' ] ,
576
+ ( ) => {
577
+ const query = Query . atPath ( path ( 'collection' ) ) ;
578
+ const docA = doc ( 'collection/a' , 1000 , { key : 'a' } ) ;
576
579
577
- return (
578
- spec ( )
579
- . withGCEnabled ( false )
580
- . userListens ( query )
581
- . watchAcksFull ( query , 1000 , docA )
582
- . expectEvents ( query , { added : [ docA ] } )
580
+ return (
581
+ spec ( )
582
+ . withGCEnabled ( false )
583
+ . userListens ( query )
584
+ . watchAcksFull ( query , 1000 , docA )
585
+ . expectEvents ( query , { added : [ docA ] } )
583
586
584
- // One millisecond later, watch sends an updated resume token but the
585
- // user doesn't manage to unlisten before restart.
586
- . watchSnapshots ( 2000 , [ ] , 'resume-token-2000' )
587
- . restart ( )
587
+ // One millisecond later, watch sends an updated resume token but the
588
+ // user doesn't manage to unlisten before restart.
589
+ . watchSnapshots ( 2000 , [ ] , 'resume-token-2000' )
590
+ . restart ( )
588
591
589
- . userListens ( query , 'resume-token-1000' )
590
- . expectEvents ( query , { added : [ docA ] , fromCache : true } )
591
- . watchAcks ( query )
592
- . watchCurrents ( query , 'resume-token-3000' )
593
- . watchSnapshots ( 3000 )
594
- . expectEvents ( query , { fromCache : false } )
595
- ) ;
596
- } ) ;
592
+ . userListens ( query , 'resume-token-1000' )
593
+ . expectEvents ( query , { added : [ docA ] , fromCache : true } )
594
+ . watchAcks ( query )
595
+ . watchCurrents ( query , 'resume-token-3000' )
596
+ . watchSnapshots ( 3000 )
597
+ . expectEvents ( query , { fromCache : false } )
598
+ ) ;
599
+ }
600
+ ) ;
597
601
598
602
specTest (
599
603
'Persists global resume tokens if the snapshot is old enough' ,
600
- [ ] ,
604
+ [ 'durable-persistence' ] ,
601
605
( ) => {
602
606
const initialVersion = 1000 ;
603
607
const minutesLater = 5 * 60 * 1e6 + initialVersion ;
0 commit comments