Skip to content

Commit 279a764

Browse files
committed
updates
1 parent 52b91dd commit 279a764

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mongo/integration/mtest/mongotest.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ func (t *T) RunOpts(name string, opts *Options, callback func(mt *T)) {
227227
sub.AddMockResponses(sub.mockResponses...)
228228
}
229229

230+
if sub.fpClient == nil {
231+
sub.fpClient = t.fpClient
232+
}
230233
// for shareClient, inherit the client from the parent
231234
if sub.shareClient != nil && *sub.shareClient && sub.clientType == t.clientType {
232235
sub.Client = t.Client
233236
}
234-
if sub.fpClient == nil {
235-
sub.fpClient = sub.createTestClient()
236-
}
237237
// only create a client if not already set
238238
if sub.Client == nil {
239239
if sub.createClient == nil || *sub.createClient {

0 commit comments

Comments
 (0)