1
0
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:
Carlos Alexandro Becker 2017-04-21 15:45:56 -03:00
parent 1c7d04bfd1
commit c7675b4864
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 2 additions and 2 deletions

View File

@ -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{

View File

@ -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",
}