Skip to content

Commit

Permalink
GODRIVER-2433 skip fle2-Range-*-Correctness tests on macOS (mongodb…
Browse files Browse the repository at this point in the history
…#1164)

* skip fle2-Range-*-Correctness tests on macOS

Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com>
  • Loading branch information
kevinAlbs and prestonvasquez authored Jan 27, 2023
1 parent b1e7aa5 commit 731613d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mongo/integration/client_side_encryption_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package integration
import (
"os"
"path"
"regexp"
"testing"
)

Expand Down Expand Up @@ -54,6 +55,10 @@ func TestClientSideEncryptionSpec(t *testing.T) {

for _, fileName := range jsonFilesInDir(t, path.Join(dataPath, encryptionSpecName)) {
t.Run(fileName, func(t *testing.T) {
re := regexp.MustCompile(`fle2\-Range\-.*\-Correctness`)
if re.Match([]byte(fileName)) {
t.Skipf("skipping test on macOS due to slow runtime")
}
if fileName == "kmipKMS.json" && "" == os.Getenv("KMS_MOCK_SERVERS_RUNNING") {
t.Skipf("Skipping test as KMS_MOCK_SERVERS_RUNNING is not set")
}
Expand Down

0 comments on commit 731613d

Please sign in to comment.