Skip to content

Commit f85d635

Browse files
committed
updates
1 parent ea9c262 commit f85d635

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mongo/integration/mtest/mongotest.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ func New(wrapped *testing.T, opts ...*Options) *T {
177177
t := newT(wrapped, opts...)
178178

179179
fpOpt := t.clientOpts
180-
fpOpt.AutoEncryptionOptions = nil
180+
if fpOpt != nil {
181+
fpOpt.AutoEncryptionOptions = nil
182+
}
181183
t.fpClient = t.createTestClient(fpOpt)
182184

183185
// only create a client if it needs to be shared in sub-tests

0 commit comments

Comments
 (0)