1
0
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:
Carlos Alexandro Becker 2021-07-24 21:14:09 -03:00
parent c3af58708c
commit c63d704ce6
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 4 additions and 1 deletions

View File

@ -241,6 +241,7 @@ func TestExecute(t *testing.T) {
AnyOf: []MockCall{
{
ExpectedArgs: []string{"a.deb"},
ExpectedEnv: osEnv(),
Stderr: "test error",
ExitCode: 1,
},

View File

@ -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
}