Skip to content

Commit f312cb7

Browse files
committed
updates
1 parent 0241e4d commit f312cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mongo/integration/mtest/mongotest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,18 @@ func (t *T) RunOpts(name string, opts *Options, callback func(mt *T)) {
229229
// for shareClient, inherit the client from the parent
230230
if sub.shareClient != nil && *sub.shareClient && sub.clientType == t.clientType {
231231
sub.Client = t.Client
232+
sub.fpClient = t.fpClient
232233
}
233234
// only create a client if not already set
234235
if sub.Client == nil {
235236
if sub.createClient == nil || *sub.createClient {
236-
sub.createTestClient(false)
237+
sub.createTestClient(true)
237238
}
238239
}
239240
// create a collection for this test
240241
if sub.Client != nil {
241242
sub.createTestCollection()
242243
}
243-
sub.fpClient = t.fpClient
244244

245245
// defer dropping all collections if the test is using a client
246246
defer func() {

0 commit comments

Comments
 (0)