Skip to content

Commit

Permalink
Fix lambda in Groovy test
Browse files Browse the repository at this point in the history
  • Loading branch information
jyemin committed Feb 1, 2023
1 parent 6c72680 commit 4e414ba
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,13 @@ class MongoClientSettingsSpecification extends Specification {
.readConcern(ReadConcern.LOCAL)
.applicationName('app1')
.addCommandListener(commandListener)
.applyToLoggerSettings(builder -> builder.maxDocumentLength(10))
.applyToClusterSettings(new Block<ClusterSettings.Builder>() {
@Override
void apply(final ClusterSettings.Builder builder) {
builder.hosts([new ServerAddress('localhost')])
.requiredReplicaSetName('test')
}
})
.applyToLoggerSettings { LoggerSettings.Builder builder ->
builder.maxDocumentLength(10)
}
.applyToClusterSettings { ClusterSettings.Builder builder ->
builder.hosts([new ServerAddress('localhost')])
.requiredReplicaSetName('test')
}
.credential(credential)
.codecRegistry(codecRegistry)
.compressorList(compressorList)
Expand Down

0 comments on commit 4e414ba

Please sign in to comment.