1616
1717package com.mongodb.internal.connection
1818
19+ import com.mongodb.LoggerSettings
1920import com.mongodb.MongoSocketOpenException
2021import com.mongodb.MongoSocketReadTimeoutException
2122import com.mongodb.OperationFunctionalSpecification
@@ -52,7 +53,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
5253 given :
5354 def connection = new InternalStreamConnectionFactory (ClusterConnectionMode . SINGLE ,
5455 new AsynchronousSocketChannelStreamFactory (openSocketSettings, getSslSettings()), getCredentialWithCache(), null , null ,
55- [], null , getServerApi())
56+ [], LoggerSettings . builder() . build(), null , getServerApi())
5657 .create(new ServerId (new ClusterId (), new ServerAddress (new InetSocketAddress (' 192.168.255.255' , 27017 ))))
5758
5859 when :
@@ -67,7 +68,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
6768 given :
6869 def connection = new InternalStreamConnectionFactory (ClusterConnectionMode . SINGLE ,
6970 new AsynchronousSocketChannelStreamFactory (readSocketSettings, getSslSettings()), getCredentialWithCache(), null , null ,
70- [], null , getServerApi()). create(new ServerId (new ClusterId (), getPrimary()))
71+ [], LoggerSettings . builder() . build(), null , getServerApi()). create(new ServerId (new ClusterId (), getPrimary()))
7172 connection. open()
7273
7374 getCollectionHelper(). insertDocuments(new BsonDocument (' _id' , new BsonInt32 (1 )))
@@ -88,7 +89,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
8889 given :
8990 def connection = new InternalStreamConnectionFactory (ClusterConnectionMode . SINGLE ,
9091 new NettyStreamFactory (openSocketSettings, getSslSettings()), getCredentialWithCache(), null , null ,
91- [], null , getServerApi()). create(new ServerId (new ClusterId (),
92+ [], LoggerSettings . builder() . build(), null , getServerApi()). create(new ServerId (new ClusterId (),
9293 new ServerAddress (new InetSocketAddress (' 192.168.255.255' , 27017 ))))
9394
9495 when :
@@ -103,7 +104,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
103104 given :
104105 def connection = new InternalStreamConnectionFactory (ClusterConnectionMode . SINGLE ,
105106 new NettyStreamFactory (readSocketSettings, getSslSettings()), getCredentialWithCache(), null , null ,
106- [], null , getServerApi()). create(new ServerId (new ClusterId (), getPrimary()))
107+ [], LoggerSettings . builder() . build(), null , getServerApi()). create(new ServerId (new ClusterId (), getPrimary()))
107108 connection. open()
108109
109110 getCollectionHelper(). insertDocuments(new BsonDocument (' _id' , new BsonInt32 (1 )))
0 commit comments