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(
1045
1045
for (int i = 1 ; i <= 100 ; i ++) {
1046
1046
testData .put ("doc" + i , map ("key" , i ));
1047
1047
}
1048
-
1049
1048
CollectionReference collection = testCollectionWithDocs (testData );
1050
- FirebaseFirestore firestore = collection .getFirestore ();
1051
1049
1052
1050
// Populate the cache and save the resume token.
1053
1051
QuerySnapshot snapshot1 = waitFor (collection .get ());
@@ -1056,14 +1054,16 @@ public void resumingQueryShouldRemoveDeletedDocumentsIndicatedByExistenceFilter(
1056
1054
1057
1055
// Delete 50 docs in transaction so that it doesn't affect local cache.
1058
1056
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
+ }));
1067
1067
1068
1068
// Wait 10 seconds, during which Watch will stop tracking the query
1069
1069
// and will send an existence filter rather than "delete" events.
You can’t perform that action at this time.
0 commit comments