From 8c84de3f73456f409805db766c67a2ba942f7d7e Mon Sep 17 00:00:00 2001 From: John Date: Thu, 13 Jun 2019 20:20:43 +0800 Subject: [PATCH] improve unit test cases for gparser --- g/encoding/gparser/gparser_unit_load_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g/encoding/gparser/gparser_unit_load_test.go b/g/encoding/gparser/gparser_unit_load_test.go index 919d12de1..9d5679831 100644 --- a/g/encoding/gparser/gparser_unit_load_test.go +++ b/g/encoding/gparser/gparser_unit_load_test.go @@ -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")