You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-11-06 09:09:29 +02:00
test(pipe): fix tests cleanup (#4636)
This commit is contained in:
@@ -15,8 +15,9 @@ import (
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
defer log.SetLevel(log.InfoLevel)
|
||||
os.Exit(m.Run())
|
||||
code := m.Run()
|
||||
log.SetLevel(log.InfoLevel)
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
func TestDescription(t *testing.T) {
|
||||
|
||||
@@ -46,8 +46,9 @@ func TestMain(m *testing.M) {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
defer os.RemoveAll(keyring)
|
||||
os.Exit(m.Run())
|
||||
code := m.Run()
|
||||
_ = os.RemoveAll(keyring)
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
func TestDescription(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user