1
0
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:
Oleksandr Redko
2024-02-17 20:34:22 +02:00
committed by GitHub
parent 554ca5f3e0
commit dab740dd8f
3 changed files with 10 additions and 4 deletions

View File

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

View File

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