diff --git a/test/e2e/util/mongotester/mongotester.go b/test/e2e/util/mongotester/mongotester.go index d94ca80c8..45bf12c3a 100644 --- a/test/e2e/util/mongotester/mongotester.go +++ b/test/e2e/util/mongotester/mongotester.go @@ -390,7 +390,7 @@ func (t *Tester) ensureClient(opts ...*options.ClientOptions) error { clientOptions := options.Client() for _, opts := range allOpts { clientOptions.Opts = append(clientOptions.Opts, func(co *options.ClientOptions) error { - co = opts + *co = *opts return nil })