Skip to content

Commit bd473d8

Browse files
committed
JAVA-2226 Ignore test of NIO2 stream type if SSL is enable, as the drivers's NIO2 implementation does not support SSL
1 parent 903a89f commit bd473d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver-async/src/test/functional/com/mongodb/async/client/MongoClientsSpecification.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory
2323
import com.mongodb.connection.netty.NettyStreamFactoryFactory
2424
import spock.lang.IgnoreIf
2525

26+
import static com.mongodb.ClusterFixture.getSslSettings
2627
import static java.util.concurrent.TimeUnit.MILLISECONDS
2728

2829
class MongoClientsSpecification extends FunctionalSpecification {
@@ -95,7 +96,7 @@ class MongoClientsSpecification extends FunctionalSpecification {
9596
client?.close()
9697
}
9798

98-
@IgnoreIf({ javaVersion < 1.7 })
99+
@IgnoreIf({ javaVersion < 1.7 || getSslSettings().isEnabled() })
99100
def 'should apply connection string to nio2 stream type'() {
100101
when:
101102
def client = MongoClients.create('mongodb://localhost/?streamType=NIO2')

0 commit comments

Comments
 (0)