From 11191c746a30e0a2e64a3241bc32a7b96ce9790b Mon Sep 17 00:00:00 2001 From: jroam Date: Mon, 15 Apr 2019 15:34:35 +0800 Subject: [PATCH] edit test --- g/os/gfile/gfile_search_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/g/os/gfile/gfile_search_test.go b/g/os/gfile/gfile_search_test.go index 45c5ad39b..643957b11 100644 --- a/g/os/gfile/gfile_search_test.go +++ b/g/os/gfile/gfile_search_test.go @@ -15,11 +15,13 @@ func TestSearch(t *testing.T) { tpath string tpath2 string tempstr string + ypaths1 string err error ) CreateDir(paths1) defer DelTestFiles(paths1) + ypaths1=paths1 tpath, err = Search(Testpath() + paths1) gtest.Assert(err, nil) @@ -51,7 +53,7 @@ func TestSearch(t *testing.T) { //测试当前目录 tempstr, _ = filepath.Abs("./") tempstr = Testpath() - paths1 = tempstr + paths1 + paths1 = tempstr + ypaths1 paths1 = filepath.ToSlash(paths1) gtest.Assert(tpath2, paths1)