mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
VAULT-14847 Skip cetain tests on ARM (#20990)
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -26,6 +27,12 @@ func PrepareTestContainer(t *testing.T, legacy bool, pw string) (func(), string)
|
||||
return func() {}, os.Getenv("MYSQL_URL")
|
||||
}
|
||||
|
||||
// ARM64 is only supported on MySQL 8.0 and above. If we update
|
||||
// our image and support to 8.0, we can unskip these tests.
|
||||
if strings.Contains(runtime.GOARCH, "arm") {
|
||||
t.Skip("Skipping, as MySQL 5.7 is not supported on ARM architectures")
|
||||
}
|
||||
|
||||
imageVersion := "5.7"
|
||||
if legacy {
|
||||
imageVersion = "5.6"
|
||||
|
||||
Reference in New Issue
Block a user