Skip to content

Commit

Permalink
Use t.Skipf() per golangci-lint (gosimple)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhui committed May 13, 2022
1 parent b5e3e92 commit acc11ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/sqlserver/sqlserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func isReady(ctx context.Context, c dktest.ContainerInfo) bool {

func SkipIfUnsupportedArch(t *testing.T, c dktest.ContainerInfo) {
if strings.Contains(c.ImageName, "mssql") && !strings.HasPrefix(runtime.GOARCH, "amd") {
t.Skip(fmt.Sprintf("Image %s is not supported on arch %s", c.ImageName, runtime.GOARCH))
t.Skipf("Image %s is not supported on arch %s", c.ImageName, runtime.GOARCH)
}
}

Expand Down

0 comments on commit acc11ed

Please sign in to comment.