Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 5ae808d

Browse files
committed
skip search tests unless running against nightly and enterprise
1 parent 8f80056 commit 5ae808d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineSearchTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import static com.google.cloud.firestore.it.ITQueryTest.map;
2020
import static com.google.cloud.firestore.pipeline.expressions.Expression.*;
2121
import static com.google.common.truth.Truth.assertThat;
22-
import static org.junit.Assume.assumeFalse;
22+
import static org.junit.Assume.assumeTrue;
2323

2424
import com.google.cloud.firestore.CollectionReference;
2525
import com.google.cloud.firestore.GeoPoint;
@@ -186,9 +186,10 @@ public void primeBackend() throws Exception {
186186

187187
@Before
188188
public void setupRestaurantDocs() throws Exception {
189-
assumeFalse(
190-
"This test suite only runs against the Enterprise edition.",
191-
!getFirestoreEdition().equals(FirestoreEdition.ENTERPRISE));
189+
assumeTrue(
190+
"This test suite only runs against the Enterprise edition in Nightly.",
191+
getFirestoreEdition().equals(FirestoreEdition.ENTERPRISE)
192+
&& "NIGHTLY".equalsIgnoreCase(getTargetBackend()));
192193

193194
restaurantsCollection = firestore.collection(COLLECTION_NAME);
194195

0 commit comments

Comments
 (0)