fix: attempt to fix tests on windows

This commit is contained in:
Simone Margaritelli 2024-08-16 15:59:54 +02:00
commit 86e87ab656

View file

@ -4,15 +4,12 @@ import (
"encoding/json" "encoding/json"
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath"
"reflect" "reflect"
"strings"
"testing" "testing"
) )
var ( var (
// fix for weird bug on windows github action testEnvFile = "test.env"
testEnvFile = strings.Replace(filepath.Join(os.TempDir(), "test.env"), "C:\\Users\\RUNNER", "", 1)
testEnvData = map[string]string{ testEnvData = map[string]string{
"people": "shit", "people": "shit",
"moo": "boo", "moo": "boo",