From ab634f8bebc4253431e845192c1b709932e90d2b Mon Sep 17 00:00:00 2001 From: jroam Date: Tue, 16 Apr 2019 23:15:22 +0800 Subject: [PATCH] del some test code --- g/os/gfile/gfile_contents_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/g/os/gfile/gfile_contents_test.go b/g/os/gfile/gfile_contents_test.go index 5e7ec8260..c066b7d1d 100644 --- a/g/os/gfile/gfile_contents_test.go +++ b/g/os/gfile/gfile_contents_test.go @@ -48,12 +48,6 @@ func formatpath(paths string) string { // 指定返回要测试的目录 func testpath() string { return os.TempDir() - psths, err := filepath.Abs("./") - if err != nil { - return os.TempDir() - } - return strings.Replace(psths, "./", "/", 1) - } func TestGetContents(t *testing.T) {