1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00

test: fix build test

This commit is contained in:
Carlos Alexandro Becker 2024-11-16 11:14:59 -03:00
parent 3c55f2bb77
commit bb438ba34e
No known key found for this signature in database

View File

@ -242,8 +242,8 @@ func TestRunPipeFailingHooks(t *testing.T) {
testctx.WithCurrentTag("2.4.5"),
testctx.Skip(skips.PreBuildHooks),
)
ctx.Config.Builds[0].Hooks.Pre = []config.Hook{{Cmd: testlib.Echo("pre")}}
ctx.Config.Builds[0].Hooks.Pre = []config.Hook{{Cmd: "exit 1"}}
ctx.Config.Builds[0].Hooks.Post = []config.Hook{{Cmd: testlib.Echo("pre")}}
require.NoError(t, Pipe{}.Run(ctx))
})
}