mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
added error checks
This commit is contained in:
parent
1c7d04bfd1
commit
c7675b4864
@ -68,7 +68,7 @@ func TestNoFPMInPath(t *testing.T) {
|
||||
defer func() {
|
||||
assert.NoError(os.Setenv("PATH", path))
|
||||
}()
|
||||
os.Setenv("PATH", "")
|
||||
assert.NoError(os.Setenv("PATH", ""))
|
||||
var ctx = &context.Context{
|
||||
Config: config.Project{
|
||||
FPM: config.FPM{
|
||||
|
@ -27,7 +27,7 @@ func TestGoVersionFails(t *testing.T) {
|
||||
defer func() {
|
||||
assert.NoError(os.Setenv("PATH", path))
|
||||
}()
|
||||
os.Setenv("PATH", "")
|
||||
assert.NoError(os.Setenv("PATH", ""))
|
||||
var ctx = &context.Context{
|
||||
ReleaseNotes: "changelog",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user