File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
firebase-firestore/src/androidTest/java/com/google/firebase/firestore Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -903,14 +903,15 @@ public void testAggregateErrorMessageShouldContainConsoleLinkIfMissingIndex() {
903
903
Throwable throwable = assertThrows (Throwable .class , () -> waitFor (task ));
904
904
905
905
Throwable cause = throwable .getCause ();
906
+ Truth .assertThat (cause ).hasMessageThat ().ignoringCase ().contains ("index" );
907
+ // TODO(b/316359394) Remove this check for the default databases once cl/582465034 is rolled
908
+ // out to production.
906
909
if (collection
907
910
.firestore
908
911
.getDatabaseId ()
909
912
.getDatabaseId ()
910
913
.equals (DatabaseId .DEFAULT_DATABASE_ID )) {
911
914
Truth .assertThat (cause ).hasMessageThat ().contains ("https://console.firebase.google.com" );
912
- } else {
913
- Truth .assertThat (cause ).hasMessageThat ().contains ("Missing index configuration" );
914
915
}
915
916
}
916
917
Original file line number Diff line number Diff line change @@ -277,14 +277,14 @@ public void testCountErrorMessageShouldContainConsoleLinkIfMissingIndex() {
277
277
278
278
Throwable cause = throwable .getCause ();
279
279
assertThat (cause ).hasMessageThat ().ignoringCase ().contains ("index" );
280
+ // TODO(b/316359394) Remove this check for the default databases once cl/582465034 is rolled
281
+ // out to production.
280
282
if (collection
281
283
.firestore
282
284
.getDatabaseId ()
283
285
.getDatabaseId ()
284
286
.equals (DatabaseId .DEFAULT_DATABASE_ID )) {
285
287
assertThat (cause ).hasMessageThat ().contains ("https://console.firebase.google.com" );
286
- } else {
287
- assertThat (cause ).hasMessageThat ().contains ("Missing index configuration" );
288
288
}
289
289
}
290
290
}
You can’t perform that action at this time.
0 commit comments