improve unit test cases for gparser

This commit is contained in:
John
2019-06-13 20:20:43 +08:00
parent 96529a4c1c
commit 8c84de3f73

View File

@ -178,7 +178,7 @@ func Test_Load_Nil(t *testing.T) {
p := gparser.NewUnsafe()
gtest.Assert(p.Value(), nil)
filePath := gfile.Pwd() + gfile.Separator + "test.json"
filePath := gfile.Pwd() + gfile.Separator + "test2.json"
ioutil.WriteFile(filePath, []byte("{"), 0644)
defer gfile.Remove(filePath)
_, err := gparser.Load("test.json")