1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +02:00

test: cleanup a bit buildpack test

refs #2596

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker
2021-11-25 21:51:04 -03:00
parent 53bd977810
commit 8c6742964c
2 changed files with 2 additions and 3 deletions

View File

@@ -167,7 +167,6 @@ func process(ctx *context.Context, docker config.Docker, artifacts []*artifact.A
}
log.Info("building docker image")
if err := imagers[docker.Use].Build(ctx, tmp, images, buildFlags); err != nil {
return err
}

View File

@@ -66,6 +66,7 @@ func killAndRm(t *testing.T) {
// TODO: this test is too big... split in smaller tests? Mainly the manifest ones...
func TestRunPipe(t *testing.T) {
testlib.CheckPath(t, "docker")
type errChecker func(*testing.T, error)
shouldErr := func(msg string) errChecker {
return func(t *testing.T, err error) {
@@ -1047,6 +1048,7 @@ func TestRunPipe(t *testing.T) {
}
func TestRunPipeWhileUsingBuildpacks(t *testing.T) {
testlib.CheckPath(t, "pack")
type errChecker func(*testing.T, error)
shouldNotErr := func(t *testing.T, err error) {
t.Helper()
@@ -1056,7 +1058,6 @@ func TestRunPipeWhileUsingBuildpacks(t *testing.T) {
table := map[string]struct {
dockers []config.Docker
manifests []config.DockerManifest
env map[string]string
expect []string
assertError errChecker
pubAssertError errChecker
@@ -1100,7 +1101,6 @@ func TestRunPipeWhileUsingBuildpacks(t *testing.T) {
})
ctx.Parallelism = 1
// ctx.Env = docker.env
ctx.Version = "1.0.0"
ctx.Git = context.GitInfo{
CurrentTag: "v1.0.0",