Skip to content

Commit 9c660ad

Browse files
committed
updates
1 parent f85d635 commit 9c660ad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mongo/integration/mtest/mongotest.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,11 @@ func (t *T) RunOpts(name string, opts *Options, callback func(mt *T)) {
232232
}
233233

234234
if sub.fpClient == nil {
235-
sub.fpClient = t.fpClient
235+
clientOpts := sub.clientOpts
236+
if clientOpts != nil {
237+
clientOpts.AutoEncryptionOptions = nil
238+
}
239+
sub.fpClient = sub.createTestClient(clientOpts)
236240
}
237241
// for shareClient, inherit the client from the parent
238242
if sub.shareClient != nil && *sub.shareClient && sub.clientType == t.clientType {
@@ -241,7 +245,7 @@ func (t *T) RunOpts(name string, opts *Options, callback func(mt *T)) {
241245
// only create a client if not already set
242246
if sub.Client == nil {
243247
if sub.createClient == nil || *sub.createClient {
244-
sub.Client = sub.createTestClient(t.clientOpts)
248+
sub.Client = sub.createTestClient(sub.clientOpts)
245249
}
246250
}
247251
// create a collection for this test

0 commit comments

Comments
 (0)