Skip to content

Commit 0fd670e

Browse files
committed
updates
1 parent ee57f35 commit 0fd670e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mongo/integration/mtest/mongotest.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,12 @@ func (t *T) ClearFailPoints() {
597597
if err != nil {
598598
t.Fatalf("error creating client: %v", err)
599599
}
600+
if err = client.Connect(context.Background()); err != nil {
601+
t.Fatalf("error connecting client: %v", err)
602+
}
603+
defer func() {
604+
_ = client.Disconnect(context.Background())
605+
}()
600606
}
601607
db := client.Database("admin")
602608
for _, fp := range t.failPointNames {

0 commit comments

Comments
 (0)