Skip to content

Commit

Permalink
Update applying uri
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Aug 20, 2024
1 parent 1a8058c commit c20ffba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/util/mongotester/mongotester.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,10 @@ func WithoutTls() OptionApplier {
// WithURI will add URI connection string
func WithURI(uri string) OptionApplier {
var clientOptions options.ClientOptions
_ = options.Client().ApplyURI(uri).Opts[0](&clientOptions)
setterFns := options.Client().ApplyURI(uri).Opts
for _, set := range setterFns {
_ = set(&clientOptions)
}

return clientOptionAdder{option: &clientOptions}
}
Expand Down

0 comments on commit c20ffba

Please sign in to comment.