@@ -181,9 +181,7 @@ function apiDescribeInternal(
181
181
message : string ,
182
182
testSuite : ( persistence : PersistenceMode ) => void
183
183
) : void {
184
- const persistenceModes : PersistenceMode [ ] = [
185
- new MemoryEagerPersistenceMode ( )
186
- ] ;
184
+ const persistenceModes : PersistenceMode [ ] = [ new MemoryLruPersistenceMode ( ) ] ;
187
185
if ( isPersistenceAvailable ( ) ) {
188
186
persistenceModes . push ( new IndexedDbPersistenceMode ( ) ) ;
189
187
}
@@ -254,51 +252,6 @@ export function withTestDb(
254
252
} ) ;
255
253
}
256
254
257
- export function withEnsuredEagerGcTestDb (
258
- fn : ( db : Firestore ) => Promise < void >
259
- ) : Promise < void > {
260
- const newSettings = { ...DEFAULT_SETTINGS } ;
261
- newSettings . localCache = memoryLocalCache ( {
262
- garbageCollector : memoryEagerGarbageCollector ( )
263
- } ) ;
264
- return withTestDbsSettings (
265
- false ,
266
- DEFAULT_PROJECT_ID ,
267
- newSettings ,
268
- 1 ,
269
- async ( [ db ] ) => {
270
- return fn ( db ) ;
271
- }
272
- ) ;
273
- }
274
-
275
- export function withEnsuredLruGcTestDb (
276
- persistence : boolean ,
277
- fn : ( db : Firestore ) => Promise < void >
278
- ) : Promise < void > {
279
- const newSettings = { ...DEFAULT_SETTINGS } ;
280
- if ( persistence ) {
281
- newSettings . localCache = persistentLocalCache ( {
282
- cacheSizeBytes : 1 * 1024 * 1024
283
- } ) ;
284
- } else {
285
- newSettings . localCache = memoryLocalCache ( {
286
- garbageCollector : memoryLruGarbageCollector ( {
287
- cacheSizeBytes : 1 * 1024 * 1024
288
- } )
289
- } ) ;
290
- }
291
- return withTestDbsSettings (
292
- persistence ,
293
- DEFAULT_PROJECT_ID ,
294
- newSettings ,
295
- 1 ,
296
- async ( [ db ] ) => {
297
- return fn ( db ) ;
298
- }
299
- ) ;
300
- }
301
-
302
255
/** Runs provided fn with a db for an alternate project id. */
303
256
export function withAlternateTestDb (
304
257
persistence : PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED ,
0 commit comments