fix: attempt to fix tests on windows

This commit is contained in:
Simone Margaritelli 2024-08-16 15:47:00 +02:00
commit ee944d9640

View file

@ -10,7 +10,7 @@ import (
) )
var ( var (
testEnvFile = filepath.Join(os.TempDir(), "test.env") testEnvFile = "test.env"
testEnvData = map[string]string{ testEnvData = map[string]string{
"people": "shit", "people": "shit",
"moo": "boo", "moo": "boo",
@ -20,6 +20,8 @@ var (
) )
func setup(t testing.TB, envFile bool, envFileData bool) { func setup(t testing.TB, envFile bool, envFileData bool) {
testEnvFile = filepath.Join(t.TempDir(), "test.env")
teardown(t) teardown(t)
if envFile { if envFile {