File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
firebase-firestore/src/androidTest/java/com/google/firebase/firestore Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1045,9 +1045,7 @@ public void resumingQueryShouldRemoveDeletedDocumentsIndicatedByExistenceFilter(
10451045 for (int i = 1 ; i <= 100 ; i ++) {
10461046 testData .put ("doc" + i , map ("key" , i ));
10471047 }
1048-
10491048 CollectionReference collection = testCollectionWithDocs (testData );
1050- FirebaseFirestore firestore = collection .getFirestore ();
10511049
10521050 // Populate the cache and save the resume token.
10531051 QuerySnapshot snapshot1 = waitFor (collection .get ());
@@ -1056,14 +1054,16 @@ public void resumingQueryShouldRemoveDeletedDocumentsIndicatedByExistenceFilter(
10561054
10571055 // Delete 50 docs in transaction so that it doesn't affect local cache.
10581056 waitFor (
1059- firestore .runTransaction (
1060- transaction -> {
1061- for (int i = 1 ; i <= 50 ; i ++) {
1062- DocumentReference docRef = documents .get (i ).getReference ();
1063- transaction .delete (docRef );
1064- }
1065- return null ;
1066- }));
1057+ collection
1058+ .getFirestore ()
1059+ .runTransaction (
1060+ transaction -> {
1061+ for (int i = 1 ; i <= 50 ; i ++) {
1062+ DocumentReference docRef = documents .get (i ).getReference ();
1063+ transaction .delete (docRef );
1064+ }
1065+ return null ;
1066+ }));
10671067
10681068 // Wait 10 seconds, during which Watch will stop tracking the query
10691069 // and will send an existence filter rather than "delete" events.
You can’t perform that action at this time.
0 commit comments