Skip to content

Commit 12fb07c

Browse files
committed
minor fix
1 parent 928555a commit 12fb07c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mongo/integration/mtest/mongotest.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,11 @@ func (t *T) ClearFailPoints() {
616616
if err != nil {
617617
t.Fatalf("error clearing fail point %s: %v", fp.name, err)
618618
}
619-
if fp.client != t.Client {
620-
_ = fp.client.Disconnect(context.Background())
621-
t.fpClients[fp.client] = false
619+
t.fpClients[fp.client] = false
620+
}
621+
for client, active := range t.fpClients {
622+
if !active && client != t.Client {
623+
_ = client.Disconnect(context.Background())
622624
}
623625
}
624626
t.failPoints = t.failPoints[:0]

0 commit comments

Comments
 (0)