Skip to content

Commit

Permalink
Don't run SQL Server tests on amd64 GOARCH
Browse files Browse the repository at this point in the history
  • Loading branch information
adlio committed Apr 8, 2023
1 parent e6f2f7a commit 6e576fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import (
// containers to which we then connect and store the connection in a package
// global variable
func TestMain(m *testing.M) {

log.Printf("Running tests on GOARCH=%s", runtime.GOARCH)

pool, err := dockertest.NewPool("")
if err != nil {
log.Fatalf("Can't run schema tests. Docker is not running: %s", err)
Expand Down
2 changes: 1 addition & 1 deletion schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ var TestDBs map[string]*TestDB = map[string]*TestDB{
Driver: MSSQLDriverName,
DockerRepo: "mcr.microsoft.com/mssql/server",
DockerTag: "2019-latest",
SkippedArchs: []string{"arm64"},
SkippedArchs: []string{"amd64"},
},
}

0 comments on commit 6e576fe

Please sign in to comment.