1
0
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:
Carlos Alexandro Becker 2023-02-07 10:39:48 -03:00 committed by GitHub
parent b0783c7401
commit 15adfc8372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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