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 7502f77 commit 2110d34Copy full SHA for 2110d34
mongo/integration/mtest/mongotest.go
@@ -588,7 +588,16 @@ func (t *T) TrackFailPoint(fpName string) {
588
589
// ClearFailPoints disables all previously set failpoints for this test.
590
func (t *T) ClearFailPoints() {
591
- db := t.Client.Database("admin")
+ 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")
601
for _, fp := range t.failPointNames {
602
cmd := bson.D{
603
{"configureFailPoint", fp},
0 commit comments