Skip to content

Commit c80f502

Browse files
committed
updates
1 parent 1fd1333 commit c80f502

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mongo/integration/mtest/mongotest.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,7 @@ func (t *T) createTestClient() {
636636
// default opts
637637
clientOpts = options.Client().SetWriteConcern(MajorityWc).SetReadPreference(PrimaryRp)
638638
} else {
639-
opts := *t.clientOpts
640-
clientOpts = &opts
639+
clientOpts = options.MergeClientOptions(t.clientOpts)
641640
}
642641
// set ServerAPIOptions to latest version if required
643642
if clientOpts.Deployment == nil && t.clientType != Mock && clientOpts.ServerAPIOptions == nil && testContext.requireAPIVersion {

0 commit comments

Comments
 (0)