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) {