Fixed temp test file path
This commit is contained in:
parent
40505091f5
commit
461761ae4a
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ package config
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -82,7 +83,7 @@ func TestOpenCurDir(t *testing.T) {
|
||||||
}
|
}
|
||||||
func TestOpenAbsEnvPath(t *testing.T) {
|
func TestOpenAbsEnvPath(t *testing.T) {
|
||||||
if !testing.Short() {
|
if !testing.Short() {
|
||||||
writeAndOpenJsonTest(t, os.TempDir()+"testConfig.json")
|
writeAndOpenJsonTest(t, filepath.Join(os.TempDir(),"testConfig.json"))
|
||||||
} else {
|
} else {
|
||||||
t.Log("Write/Read file test skipped")
|
t.Log("Write/Read file test skipped")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue