1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-31 01:53:50 +02:00

test: update assertion

This commit is contained in:
Carlos Alexandro Becker 2023-10-17 17:50:57 +00:00
parent 8248526512
commit 7d21a1b553
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -386,7 +386,10 @@ func TestPublishPipeError(t *testing.T) {
ctx := makeCtx()
ctx.Config.Kos[0].WorkingDir = t.TempDir()
require.NoError(t, Pipe{}.Default(ctx))
require.EqualError(t, Pipe{}.Publish(ctx), `build: build: go build: exit status 1`)
require.EqualError(
t, Pipe{}.Publish(ctx),
"build: build: go build: exit status 1: pattern ./...: directory prefix . does not contain main module or its selected dependencies\n",
)
})
t.Run("invalid tags tmpl", func(t *testing.T) {