Enable new test only on 4.2+ servers
@@ -55,12 +55,14 @@ import java.util.Map;
import java.util.Set;
import java.util.stream.Stream;
+import static com.mongodb.ClusterFixture.serverVersionAtLeast;
import static com.mongodb.client.Fixture.getMongoClient;
import static com.mongodb.client.Fixture.getMongoClientSettingsBuilder;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assumptions.assumeTrue;
import static org.junit.jupiter.params.provider.Arguments.arguments;
import static util.JsonPoweredTestHelper.getTestDocument;
@@ -73,6 +75,7 @@ public abstract class AbstractClientSideEncryptionDeadlockTest {
@BeforeEach
public void setUp() throws IOException, URISyntaxException {
+ assumeTrue(serverVersionAtLeast(4, 2));
MongoDatabase keyVaultDatabase = getMongoClient().getDatabase("keyvault");
MongoCollection<BsonDocument> dataKeysCollection = keyVaultDatabase.getCollection("datakeys", BsonDocument.class)
