Skip to content

Commit 785790e

Browse files
committed
updates
1 parent 8b00c6f commit 785790e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mongo/integration/mtest/mongotest.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,12 @@ func (t *T) TrackFailPoint(fpName string) {
607607

608608
// ClearFailPoints disables all previously set failpoints for this test.
609609
func (t *T) ClearFailPoints() {
610-
db := t.Client.Database("admin")
610+
clientOpts := t.clientOpts
611+
if clientOpts != nil {
612+
clientOpts.AutoEncryptionOptions = nil
613+
}
614+
client := t.createTestClient(clientOpts)
615+
db := client.Database("admin")
611616
for _, fp := range t.failPointNames {
612617
cmd := bson.D{
613618
{"configureFailPoint", fp},

0 commit comments

Comments
 (0)