We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 928555a commit 12fb07cCopy full SHA for 12fb07c
mongo/integration/mtest/mongotest.go
@@ -616,9 +616,11 @@ func (t *T) ClearFailPoints() {
616
if err != nil {
617
t.Fatalf("error clearing fail point %s: %v", fp.name, err)
618
}
619
- if fp.client != t.Client {
620
- _ = fp.client.Disconnect(context.Background())
621
- t.fpClients[fp.client] = false
+ t.fpClients[fp.client] = false
+ }
+ for client, active := range t.fpClients {
622
+ if !active && client != t.Client {
623
+ _ = client.Disconnect(context.Background())
624
625
626
t.failPoints = t.failPoints[:0]
0 commit comments