@@ -26,6 +26,7 @@ import org.bson.BsonDocument
26
26
import org.bson.BsonInt32
27
27
import org.bson.BsonString
28
28
import org.junit.experimental.categories.Category
29
+ import spock.lang.IgnoreIf
29
30
import spock.lang.Unroll
30
31
31
32
import java.util.concurrent.TimeUnit
@@ -36,6 +37,7 @@ import static com.mongodb.ClusterFixture.getSslSettings
36
37
import static com.mongodb.connection.CommandHelper.executeCommand
37
38
38
39
@Category (Slow )
40
+ @IgnoreIf ({ System .getProperty(' java.version' ).startsWith(' 1.6.' ) })
39
41
class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification {
40
42
41
43
static SocketSettings openSocketSettings = SocketSettings . builder(). connectTimeout(1 , TimeUnit . MILLISECONDS ). build();
@@ -55,7 +57,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
55
57
56
58
where :
57
59
description | streamFactory
58
- ' AsynchronousSocket' | new AsynchronousSocketChannelStreamFactory (openSocketSettings, getSslSettings ())
60
+ ' AsynchronousSocket' | new AsynchronousSocketChannelStreamFactory (openSocketSettings, SslSettings . builder() . build ())
59
61
' NettyStream' | new NettyStreamFactory (openSocketSettings, getSslSettings())
60
62
}
61
63
@@ -81,7 +83,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
81
83
82
84
where :
83
85
description | streamFactory
84
- ' AsynchronousSocket' | new AsynchronousSocketChannelStreamFactory (readSocketSettings, getSslSettings ())
86
+ ' AsynchronousSocket' | new AsynchronousSocketChannelStreamFactory (readSocketSettings, SslSettings . builder() . build ())
85
87
' NettyStream' | new NettyStreamFactory (readSocketSettings, getSslSettings())
86
88
}
87
89
0 commit comments