mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-15 13:53:25 +02:00
test: do not fail if not rel
This commit is contained in:
parent
d933d8b316
commit
2b73005369
@ -430,8 +430,10 @@ func TestBuild(t *testing.T) {
|
||||
list := ctx.Artifacts
|
||||
require.NoError(t, list.Visit(func(a *artifact.Artifact) error {
|
||||
s, err := filepath.Rel(folder, a.Path)
|
||||
a.Path = s
|
||||
return err
|
||||
if err == nil {
|
||||
a.Path = s
|
||||
}
|
||||
return nil
|
||||
}))
|
||||
require.ElementsMatch(t, list.List(), []*artifact.Artifact{
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user