mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-04 03:11:55 +02:00
test: fix exec tests on go 1.20 (#3764)
otherwise we might get warnings like > warning: GOCOVERDIR not set, no coverage data emitted --------- Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
b0783c7401
commit
15adfc8372
@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/goreleaser/goreleaser/internal/artifact"
|
||||
@ -361,7 +362,7 @@ func TestExecute(t *testing.T) {
|
||||
return
|
||||
}
|
||||
require.Error(t, err)
|
||||
require.Equal(t, tc.expectErr.Error(), err.Error())
|
||||
require.True(t, strings.HasPrefix(err.Error(), tc.expectErr.Error()))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user