From 1df51fd13ad2fff8c8e69d99b647677b75dc52c3 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Fri, 16 Aug 2024 15:20:18 +0200 Subject: [PATCH] fix: fixed windows test failure in environment_test.go --- session/environment_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/session/environment_test.go b/session/environment_test.go index 5edcc0ee..3b6b0fa0 100644 --- a/session/environment_test.go +++ b/session/environment_test.go @@ -4,12 +4,13 @@ import ( "encoding/json" "io/ioutil" "os" + "path/filepath" "reflect" "testing" ) var ( - testEnvFile = "/tmp/test.env" + testEnvFile = filepath.Join(os.TempDir(), "test.env") testEnvData = map[string]string{ "people": "shit", "moo": "boo",