File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -128,10 +128,10 @@ type T struct {
128
128
succeeded []* event.CommandSucceededEvent
129
129
failed []* event.CommandFailedEvent
130
130
131
- Client * mongo.Client
132
- // fpClient *mongo.Client
133
- DB * mongo.Database
134
- Coll * mongo.Collection
131
+ Client * mongo.Client
132
+ fpClient * mongo.Client
133
+ DB * mongo.Database
134
+ Coll * mongo.Collection
135
135
}
136
136
137
137
func newT (wrapped * testing.T , opts ... * Options ) * T {
@@ -718,6 +718,7 @@ func (t *T) createTestClient() {
718
718
uriOpts = options .Client ().ApplyURI (testContext .connString .Original )
719
719
}
720
720
}
721
+
721
722
var err error
722
723
// Pass in uriOpts first so clientOpts wins if there are any conflicting settings.
723
724
t .Client , err = mongo .NewClient (uriOpts , clientOpts )
@@ -727,6 +728,15 @@ func (t *T) createTestClient() {
727
728
if err := t .Client .Connect (context .Background ()); err != nil {
728
729
t .Fatalf ("error connecting client: %v" , err )
729
730
}
731
+
732
+ clientOpts .AutoEncryptionOptions = nil
733
+ t .fpClient , err = mongo .NewClient (uriOpts , clientOpts )
734
+ if err != nil {
735
+ t .Fatalf ("error creating client: %v" , err )
736
+ }
737
+ if err := t .fpClient .Connect (context .Background ()); err != nil {
738
+ t .Fatalf ("error connecting client: %v" , err )
739
+ }
730
740
}
731
741
732
742
func (t * T ) createTestCollection () {
You can’t perform that action at this time.
0 commit comments