mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-12 07:43:32 -07:00
Fixed temp test file path
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user