You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-05 00:59:04 +02:00
added error checks
This commit is contained in:
@ -68,7 +68,7 @@ func TestNoFPMInPath(t *testing.T) {
|
|||||||
defer func() {
|
defer func() {
|
||||||
assert.NoError(os.Setenv("PATH", path))
|
assert.NoError(os.Setenv("PATH", path))
|
||||||
}()
|
}()
|
||||||
os.Setenv("PATH", "")
|
assert.NoError(os.Setenv("PATH", ""))
|
||||||
var ctx = &context.Context{
|
var ctx = &context.Context{
|
||||||
Config: config.Project{
|
Config: config.Project{
|
||||||
FPM: config.FPM{
|
FPM: config.FPM{
|
||||||
|
@ -27,7 +27,7 @@ func TestGoVersionFails(t *testing.T) {
|
|||||||
defer func() {
|
defer func() {
|
||||||
assert.NoError(os.Setenv("PATH", path))
|
assert.NoError(os.Setenv("PATH", path))
|
||||||
}()
|
}()
|
||||||
os.Setenv("PATH", "")
|
assert.NoError(os.Setenv("PATH", ""))
|
||||||
var ctx = &context.Context{
|
var ctx = &context.Context{
|
||||||
ReleaseNotes: "changelog",
|
ReleaseNotes: "changelog",
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user