File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
firebase-firestore/src/test/java/com/google/firebase/firestore/local Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -628,8 +628,6 @@ public void testDeleteAllIndexesWorksWithIndexAutoCreation() {
628
628
assertRemoteDocumentsRead (/* byKey= */ 0 , /* byCollection= */ 2 );
629
629
assertQueryReturned ("coll/a" , "coll/e" );
630
630
631
- setIndexAutoCreationEnabled (false );
632
-
633
631
backfillIndexes ();
634
632
635
633
executeQuery (query );
@@ -641,6 +639,13 @@ public void testDeleteAllIndexesWorksWithIndexAutoCreation() {
641
639
executeQuery (query );
642
640
assertRemoteDocumentsRead (/* byKey= */ 0 , /* byCollection= */ 2 );
643
641
assertQueryReturned ("coll/a" , "coll/e" );
642
+
643
+ // Field index is created again.
644
+ backfillIndexes ();
645
+
646
+ executeQuery (query );
647
+ assertRemoteDocumentsRead (/* byKey= */ 2 , /* byCollection= */ 0 );
648
+ assertQueryReturned ("coll/a" , "coll/e" );
644
649
}
645
650
646
651
@ Test
You can’t perform that action at this time.
0 commit comments