mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-04-13 11:50:34 +02:00
test: fix
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
c3af58708c
commit
c63d704ce6
@ -241,6 +241,7 @@ func TestExecute(t *testing.T) {
|
||||
AnyOf: []MockCall{
|
||||
{
|
||||
ExpectedArgs: []string{"a.deb"},
|
||||
ExpectedEnv: osEnv(),
|
||||
Stderr: "test error",
|
||||
ExitCode: 1,
|
||||
},
|
||||
|
@ -514,7 +514,9 @@ func testSign(tb testing.TB, ctx *context.Context, signaturePaths []string, sign
|
||||
|
||||
// run the pipeline
|
||||
if expectedErrMsg != "" {
|
||||
require.EqualError(tb, Pipe{}.Run(ctx), expectedErrMsg)
|
||||
err:=Pipe{}.Run(ctx)
|
||||
require.Error(tb, err)
|
||||
require.Contains(tb, err.Error(), expectedErrMsg)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user