Fix Spock tests
package com.mongodb.internal.connection
+import com.mongodb.LoggerSettings
import com.mongodb.MongoSocketOpenException
import com.mongodb.MongoSocketReadTimeoutException
import com.mongodb.OperationFunctionalSpecification
@@ -52,7 +53,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
given:
def connection = new InternalStreamConnectionFactory(ClusterConnectionMode.SINGLE,
new AsynchronousSocketChannelStreamFactory(openSocketSettings, getSslSettings()), getCredentialWithCache(), null, null,
- [], null, getServerApi())
+ [], LoggerSettings.builder().build(), null, getServerApi())
.create(new ServerId(new ClusterId(), new ServerAddress(new InetSocketAddress('192.168.255.255', 27017))))
when:
@@ -67,7 +68,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
given:
def connection = new InternalStreamConnectionFactory(ClusterConnectionMode.SINGLE,
new AsynchronousSocketChannelStreamFactory(readSocketSettings, getSslSettings()), getCredentialWithCache(), null, null,
- [], null, getServerApi()).create(new ServerId(new ClusterId(), getPrimary()))
+ [], LoggerSettings.builder().build(), null, getServerApi()).create(new ServerId(new ClusterId(), getPrimary()))
connection.open()
getCollectionHelper().insertDocuments(new BsonDocument('_id', new BsonInt32(1)))
@@ -88,7 +89,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
given:
def connection = new InternalStreamConnectionFactory(ClusterConnectionMode.SINGLE,
new NettyStreamFactory(openSocketSettings, getSslSettings()), getCredentialWithCache(), null, null,
- [], null, getServerApi()).create(new ServerId(new ClusterId(),
+ [], LoggerSettings.builder().build(), null, getServerApi()).create(new ServerId(new ClusterId(),
new ServerAddress(new InetSocketAddress('192.168.255.255', 27017))))
when:
@@ -103,7 +104,7 @@ class AsyncStreamTimeoutsSpecification extends OperationFunctionalSpecification
given:
def connection = new InternalStreamConnectionFactory(ClusterConnectionMode.SINGLE,
new NettyStreamFactory(readSocketSettings, getSslSettings()), getCredentialWithCache(), null, null,
- [], null, getServerApi()).create(new ServerId(new ClusterId(), getPrimary()))
+ [], LoggerSettings.builder().build(), null, getServerApi()).create(new ServerId(new ClusterId(), getPrimary()))
connection.open()
getCollectionHelper().insertDocuments(new BsonDocument('_id', new BsonInt32(1)))
