Skip to content

Commit 6c72680

Browse files
committed
Fix Spock tests
1 parent 56582e9 commit 6c72680

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

driver-core/src/test/functional/com/mongodb/internal/connection/AsyncStreamTimeoutsSpecification.groovy

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.mongodb.internal.connection
1818

19+
import com.mongodb.LoggerSettings
1920
import com.mongodb.MongoSocketOpenException
2021
import com.mongodb.MongoSocketReadTimeoutException
2122
import 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

Comments
 (0)