@@ -26,6 +26,7 @@ import org.bson.BsonDocument
2626import org.bson.BsonInt32
2727import org.bson.BsonString
2828import org.junit.experimental.categories.Category
29+ import spock.lang.IgnoreIf
2930import spock.lang.Unroll
3031
3132import java.util.concurrent.TimeUnit
@@ -36,6 +37,7 @@ import static com.mongodb.ClusterFixture.getSslSettings
3637import static com.mongodb.connection.CommandHelper.executeCommand
3738
3839@Category (Slow )
40+ @IgnoreIf ({ System .getProperty(' java.version' ).startsWith(' 1.6.' ) })
3941class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification {
4042
4143 static SocketSettings openSocketSettings = SocketSettings . builder(). connectTimeout(1 , TimeUnit . MILLISECONDS ). build();
@@ -55,7 +57,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
5557
5658 where :
5759 description | streamFactory
58- ' AsynchronousSocket' | new AsynchronousSocketChannelStreamFactory (openSocketSettings, getSslSettings ())
60+ ' AsynchronousSocket' | new AsynchronousSocketChannelStreamFactory (openSocketSettings, SslSettings . builder() . build ())
5961 ' NettyStream' | new NettyStreamFactory (openSocketSettings, getSslSettings())
6062 }
6163
@@ -81,7 +83,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
8183
8284 where :
8385 description | streamFactory
84- ' AsynchronousSocket' | new AsynchronousSocketChannelStreamFactory (readSocketSettings, getSslSettings ())
86+ ' AsynchronousSocket' | new AsynchronousSocketChannelStreamFactory (readSocketSettings, SslSettings . builder() . build ())
8587 ' NettyStream' | new NettyStreamFactory (readSocketSettings, getSslSettings())
8688 }
8789
0 commit comments