Skip to content

Commit 12275e4

Browse files
committed
Fix test
JAVA-4911
1 parent e49226d commit 12275e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

driver-sync/src/test/functional/com/mongodb/client/AbstractDnsConfigurationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import java.util.concurrent.TimeoutException;
4040

4141
import static com.mongodb.ClusterFixture.getConnectionString;
42-
import static com.mongodb.ClusterFixture.getSslSettings;
42+
import static com.mongodb.ClusterFixture.getServerApi;
4343
import static com.mongodb.ClusterFixture.isStandalone;
4444
import static java.util.concurrent.TimeUnit.SECONDS;
4545
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -86,7 +86,8 @@ public void clusterDescriptionChanged(final ClusterDescriptionChangedEvent event
8686
public void testInetAddressResolverDoesNotResolveIpLiteral(final String ipLiteral) throws InterruptedException, ExecutionException,
8787
TimeoutException {
8888
assumeTrue(isStandalone());
89-
89+
assumeTrue(getServerApi() == null);
90+
9091
// should not be invoked for IP literals
9192
InetAddressResolver resolver = host -> {
9293
throw new UnknownHostException();
@@ -107,7 +108,6 @@ public void clusterDescriptionChanged(final ClusterDescriptionChangedEvent event
107108
}
108109
}
109110
}))
110-
.applyToSslSettings(builder -> builder.applySettings(getSslSettings()))
111111
.inetAddressResolver(resolver)
112112
.build();
113113

0 commit comments

Comments
 (0)