16 lines
238 B
Go
16 lines
238 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/lixenwraith/logwisp/internal/testutil"
|
|
)
|
|
|
|
func isolateConfig(t *testing.T) {
|
|
t.Helper()
|
|
testutil.ClearEnvPrefix(t, "LOGWISP_")
|
|
dir := t.TempDir()
|
|
t.Setenv("HOME", dir)
|
|
t.Chdir(dir)
|
|
}
|