From c43f41791b28b5ffa7fce206c1187c09d38b9527 Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Mon, 23 Feb 2026 14:42:40 -0500 Subject: [PATCH 1/3] test: revert throw assertion in arrayContainsAnyQueries test Modified the `arrayContainsAnyQueries` test to reflect updated backend behaviour. The throw assertion was added in https://github.com/googleapis/java-firestore/pull/2299. It seems the backend behaviour has changed and now there is no excecption thrown. --- .../java/com/google/cloud/firestore/it/ITSystemTest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java index 158037e09b..0301dae026 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java @@ -1944,13 +1944,7 @@ public void arrayContainsAnyQueries() throws Exception { Query query = randomColl.whereArrayContainsAny("array", Arrays.asList(42, 43)); - if (getFirestoreEdition() == FirestoreEdition.STANDARD) { - assertEquals(asList("a", "b", "d", "e"), querySnapshotToIds(query.get().get())); - } else { - // TODO: Currently rejected because of mixed type setup, backend will change the behavior; and - // this test will fail by then. - assertThrows(ExecutionException.class, () -> querySnapshotToIds(query.get().get())); - } + assertEquals(asList("a", "b", "d", "e"), querySnapshotToIds(query.get().get())); } @Test From 8bad4c10e9cb2aa7a59a23c43e72beaf7b1e130d Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Mon, 23 Feb 2026 15:33:38 -0500 Subject: [PATCH 2/3] assert contains not in order --- .../java/com/google/cloud/firestore/it/ITSystemTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java index 0301dae026..6ef207ba13 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java @@ -1944,7 +1944,11 @@ public void arrayContainsAnyQueries() throws Exception { Query query = randomColl.whereArrayContainsAny("array", Arrays.asList(42, 43)); - assertEquals(asList("a", "b", "d", "e"), querySnapshotToIds(query.get().get())); + if (getFirestoreEdition() == FirestoreEdition.STANDARD) { + assertEquals(asList("a", "b", "d", "e"), querySnapshotToIds(query.get().get())); + } else { + assertThat(querySnapshotToIds(query.get().get())).containsExactlyElementsIn(asList("a", "b", "d", "e")); + } } @Test From 8554bb96eeb9f5f47081752a31468a242321dc3e Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Mon, 23 Feb 2026 20:36:33 +0000 Subject: [PATCH 3/3] chore: generate libraries at Mon Feb 23 20:34:24 UTC 2026 --- .../test/java/com/google/cloud/firestore/it/ITSystemTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java index 6ef207ba13..1712046be9 100644 --- a/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java +++ b/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java @@ -1947,7 +1947,8 @@ public void arrayContainsAnyQueries() throws Exception { if (getFirestoreEdition() == FirestoreEdition.STANDARD) { assertEquals(asList("a", "b", "d", "e"), querySnapshotToIds(query.get().get())); } else { - assertThat(querySnapshotToIds(query.get().get())).containsExactlyElementsIn(asList("a", "b", "d", "e")); + assertThat(querySnapshotToIds(query.get().get())) + .containsExactlyElementsIn(asList("a", "b", "d", "e")); } }