We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd1333 commit c80f502Copy full SHA for c80f502
mongo/integration/mtest/mongotest.go
@@ -636,8 +636,7 @@ func (t *T) createTestClient() {
636
// default opts
637
clientOpts = options.Client().SetWriteConcern(MajorityWc).SetReadPreference(PrimaryRp)
638
} else {
639
- opts := *t.clientOpts
640
- clientOpts = &opts
+ clientOpts = options.MergeClientOptions(t.clientOpts)
641
}
642
// set ServerAPIOptions to latest version if required
643
if clientOpts.Deployment == nil && t.clientType != Mock && clientOpts.ServerAPIOptions == nil && testContext.requireAPIVersion {
0 commit comments