diff --git a/os/gfile/gfile_z_test.go b/os/gfile/gfile_z_test.go index d96691429..47478a68c 100644 --- a/os/gfile/gfile_z_test.go +++ b/os/gfile/gfile_z_test.go @@ -39,7 +39,7 @@ func Test_IsEmpty(t *testing.T) { defer delTestFiles(path) gtest.Assert(gfile.IsEmpty(testpath()+path), true) - gtest.Assert(gfile.IsEmpty(testpath()+path+gfile.Separator+"test.txt"), false) + gtest.Assert(gfile.IsEmpty(testpath()+path+gfile.Separator+"test.txt"), true) }) gtest.Case(t, func() { path := "/testfile_" + gconv.String(gtime.Nanosecond())