From 461761ae4acee160c96844aec770da2dc8c55e43 Mon Sep 17 00:00:00 2001 From: cpb8010 Date: Fri, 2 Aug 2013 20:51:42 -0400 Subject: [PATCH] Fixed temp test file path --- config/config_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config_test.go b/config/config_test.go index a6b701d..c137931 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -7,6 +7,7 @@ package config import ( "bufio" "os" + "path/filepath" "strings" "testing" ) @@ -82,7 +83,7 @@ func TestOpenCurDir(t *testing.T) { } func TestOpenAbsEnvPath(t *testing.T) { if !testing.Short() { - writeAndOpenJsonTest(t, os.TempDir()+"testConfig.json") + writeAndOpenJsonTest(t, filepath.Join(os.TempDir(),"testConfig.json")) } else { t.Log("Write/Read file test skipped") }