1
0
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:
Carlos Alexandro Becker
2017-04-21 15:45:56 -03:00
parent 1c7d04bfd1
commit c7675b4864
2 changed files with 2 additions and 2 deletions

View File

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

View File

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