Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Aug 12, 2024
1 parent 928555a commit 12fb07c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mongo/integration/mtest/mongotest.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,11 @@ func (t *T) ClearFailPoints() {
if err != nil {
t.Fatalf("error clearing fail point %s: %v", fp.name, err)
}
if fp.client != t.Client {
_ = fp.client.Disconnect(context.Background())
t.fpClients[fp.client] = false
t.fpClients[fp.client] = false
}
for client, active := range t.fpClients {
if !active && client != t.Client {
_ = client.Disconnect(context.Background())
}
}
t.failPoints = t.failPoints[:0]
Expand Down

0 comments on commit 12fb07c

Please sign in to comment.