Skip to content

Commit 3b2c14b

Browse files
committed
Fix integration tests
1 parent 1ecc3ff commit 3b2c14b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

firebase-firestore/src/androidTest/java/com/google/firebase/firestore/FirestoreTest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,10 @@ public void testCanGetDocumentWithMemoryLruGCEnabled() {
13041304
FirebaseFirestore db = testFirestore();
13051305
db.setFirestoreSettings(
13061306
new FirebaseFirestoreSettings.Builder(db.getFirestoreSettings())
1307-
.setPersistenceEnabled(false)
1308-
.setMemoryLruGcEnabled(true)
1307+
.setLocalCacheSettings(
1308+
MemoryCacheSettings.newBuilder()
1309+
.setGcSettings(MemoryLruGcSettings.newBuilder().build())
1310+
.build())
13091311
.build());
13101312

13111313
DocumentReference doc = db.collection("abc").document("123");
@@ -1322,8 +1324,10 @@ public void testCannotGetDocumentWithMemoryEagerGcEnabled() {
13221324
FirebaseFirestore db = testFirestore();
13231325
db.setFirestoreSettings(
13241326
new FirebaseFirestoreSettings.Builder(db.getFirestoreSettings())
1325-
.setPersistenceEnabled(false)
1326-
.setMemoryLruGcEnabled(false)
1327+
.setLocalCacheSettings(
1328+
MemoryCacheSettings.newBuilder()
1329+
.setGcSettings(MemoryEagerGcSettings.newBuilder().build())
1330+
.build())
13271331
.build());
13281332

13291333
DocumentReference doc = db.collection("abc").document("123");

0 commit comments

Comments
 (0)