Skip to content

Commit 03788f9

Browse files
authored
Temporarily limit TypeMqlValuesFunctionalTest.asString server version (#1803)
Test that previously expected a MongoCommandException no longer does on the latest build. JAVA-5960
1 parent 94103af commit 03788f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

driver-core/src/test/functional/com/mongodb/client/model/mql/TypeMqlValuesFunctionalTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import java.util.Arrays;
3030

3131
import static com.mongodb.ClusterFixture.serverVersionAtLeast;
32+
import static com.mongodb.ClusterFixture.serverVersionLessThan;
3233
import static com.mongodb.client.model.mql.MqlValues.of;
3334
import static com.mongodb.client.model.mql.MqlValues.ofIntegerArray;
3435
import static com.mongodb.client.model.mql.MqlValues.ofMap;
@@ -173,6 +174,8 @@ public void isMapOrTest() {
173174

174175
@Test
175176
public void asStringTest() {
177+
assumeTrue(serverVersionLessThan(8, 2)); // TODO JAVA-5960
178+
176179
// https://www.mongodb.com/docs/manual/reference/operator/aggregation/toString/
177180
// asString, since toString conflicts
178181
assertExpression("false", of(false).asString(), "{'$toString': [false]}");

0 commit comments

Comments
 (0)