From d63c2882fd449416ead2a32f1d8e4a40f6298dd3 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 5 Sep 2019 20:18:49 +0800 Subject: [PATCH] update unit test case for gfile.IsEmpty --- os/gfile/gfile_z_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())