Skip to content

Commit ec18123

Browse files
committed
updates
1 parent c523a82 commit ec18123

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
@@ -260,7 +260,7 @@ func (t *T) RunOpts(name string, opts *Options, callback func(mt *T)) {
260260
// only disconnect client if it's not being shared
261261
if sub.shareClient == nil || !*sub.shareClient {
262262
_ = sub.Client.Disconnect(context.Background())
263-
_ = sub.fpClient.Disconnect(context.Background())
263+
// _ = sub.fpClient.Disconnect(context.Background())
264264
}
265265
assert.Equal(sub, 0, sessions, "%v sessions checked out", sessions)
266266
assert.Equal(sub, 0, conns, "%v connections checked out", conns)
@@ -629,7 +629,7 @@ func sanitizeCollectionName(db string, coll string) string {
629629
return coll
630630
}
631631

632-
func (t *T) createTestClient(createFpClient bool) {
632+
func (t *T) createTestClient(needFpClient bool) {
633633
clientOpts := t.clientOpts
634634
if clientOpts == nil {
635635
// default opts
@@ -726,7 +726,7 @@ func (t *T) createTestClient(createFpClient bool) {
726726
t.Fatalf("error connecting client: %v", err)
727727
}
728728

729-
if createFpClient {
729+
if needFpClient {
730730
t.fpClient, err = mongo.NewClient(t.clientOpts)
731731
if err != nil {
732732
t.Fatalf("error creating client: %v", err)

0 commit comments

Comments
 (0)