Skip to content

Commit

Permalink
handle CRYPT_SHARED_LIB_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Sep 26, 2023
1 parent 8117ee1 commit 7bd711a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mongo/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"go.mongodb.org/mongo-driver/mongo/readpref"
"go.mongodb.org/mongo-driver/mongo/writeconcern"
"go.mongodb.org/mongo-driver/tag"
"go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt"
"go.mongodb.org/mongo-driver/x/mongo/driver/session"
"go.mongodb.org/mongo-driver/x/mongo/driver/topology"
)
Expand Down Expand Up @@ -443,6 +444,9 @@ func TestClient(t *testing.T) {
if cryptSharedLibPath == "" {
t.Skip("CRYPT_SHARED_LIB_PATH not set, skipping")
}
if len(mongocrypt.Version()) == 0 {
t.Skip("Not built with cse flag")
}

testCases := []struct {
description string
Expand Down

0 comments on commit 7bd711a

Please sign in to comment.