Skip to content

Commit 2110d34

Browse files
committed
updates
1 parent 7502f77 commit 2110d34

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

mongo/integration/mtest/mongotest.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,16 @@ func (t *T) TrackFailPoint(fpName string) {
588588

589589
// ClearFailPoints disables all previously set failpoints for this test.
590590
func (t *T) ClearFailPoints() {
591-
db := t.Client.Database("admin")
591+
clientOpts := *t.clientOpts
592+
clientOpts.AutoEncryptionOptions = nil
593+
client, err := mongo.NewClient(&clientOpts)
594+
if err != nil {
595+
t.Fatalf("error creating client: %v", err)
596+
}
597+
defer func() {
598+
_ = client.Disconnect(context.Background())
599+
}()
600+
db := client.Database("admin")
592601
for _, fp := range t.failPointNames {
593602
cmd := bson.D{
594603
{"configureFailPoint", fp},

0 commit comments

Comments
 (0)