@@ -942,7 +942,7 @@ function genericLruGarbageCollectorTests(
942
942
await initializeTestResources ( LruParams . withCacheSize ( 100 ) ) ;
943
943
expect ( persistence . started ) . to . be . true ;
944
944
945
- // Add 50 targets and 10 documents to each.
945
+ // Add 50 targets and 5 documents to each.
946
946
for ( let i = 0 ; i < 50 ; i ++ ) {
947
947
// Use separate transactions so that each target and associated documents get their own
948
948
// sequence number.
@@ -953,7 +953,7 @@ function genericLruGarbageCollectorTests(
953
953
return addNextTargetInTransaction ( txn ) . next ( queryData => {
954
954
const targetId = queryData . targetId ;
955
955
const promises : Array < PersistencePromise < void > > = [ ] ;
956
- for ( let j = 0 ; j < 10 ; j ++ ) {
956
+ for ( let j = 0 ; j < 5 ; j ++ ) {
957
957
promises . push (
958
958
cacheADocumentInTransaction ( txn ) . next ( docKey =>
959
959
queryCache . addMatchingKeys (
@@ -987,7 +987,7 @@ function genericLruGarbageCollectorTests(
987
987
) ;
988
988
expect ( results . didRun ) . to . be . true ;
989
989
expect ( results . targetsRemoved ) . to . equal ( 5 ) ;
990
- expect ( results . documentsRemoved ) . to . equal ( 50 ) ;
990
+ expect ( results . documentsRemoved ) . to . equal ( 25 ) ;
991
991
992
992
// Verify that we updated the cache size by checking that it's smaller now.
993
993
const finalCacheSize = await persistence . runTransaction (
@@ -1004,8 +1004,8 @@ function genericLruGarbageCollectorTests(
1004
1004
const params = new LruParams ( 100 , 100 , 5 ) ;
1005
1005
await initializeTestResources ( params ) ;
1006
1006
1007
- // Add 50 targets and 10 documents to each.
1008
- for ( let i = 0 ; i < 50 ; i ++ ) {
1007
+ // Add 25 targets and 5 documents to each.
1008
+ for ( let i = 0 ; i < 25 ; i ++ ) {
1009
1009
// Use separate transactions so that each target and associated documents get their own
1010
1010
// sequence number.
1011
1011
await persistence . runTransaction (
@@ -1015,7 +1015,7 @@ function genericLruGarbageCollectorTests(
1015
1015
return addNextTargetInTransaction ( txn ) . next ( queryData => {
1016
1016
const targetId = queryData . targetId ;
1017
1017
const promises : Array < PersistencePromise < void > > = [ ] ;
1018
- for ( let j = 0 ; j < 10 ; j ++ ) {
1018
+ for ( let j = 0 ; j < 5 ; j ++ ) {
1019
1019
promises . push (
1020
1020
cacheADocumentInTransaction ( txn ) . next ( docKey =>
1021
1021
queryCache . addMatchingKeys (
0 commit comments