From 8b3fd8ec661ad4e4ba686e1894304f3305dcb7ea Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Sat, 30 Nov 2019 23:26:02 +0800 Subject: [PATCH] Modify: test for local handler delete --- pkg/filesystem/local/handller_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/filesystem/local/handller_test.go b/pkg/filesystem/local/handller_test.go index ef90250..b5a0ab1 100644 --- a/pkg/filesystem/local/handller_test.go +++ b/pkg/filesystem/local/handller_test.go @@ -53,18 +53,18 @@ func TestHandler_Delete(t *testing.T) { asserts.NoError(err) _ = file.Close() list, err := handler.Delete(ctx, []string{"test.file"}) - asserts.Equal([]string{"test.file"}, list) + asserts.Equal([]string{}, list) asserts.NoError(err) file, err = os.Create("test.file") asserts.NoError(err) _ = file.Close() list, err = handler.Delete(ctx, []string{"test.file", "test.notexist"}) - asserts.Equal([]string{"test.file"}, list) + asserts.Equal([]string{"test.notexist"}, list) asserts.Error(err) list, err = handler.Delete(ctx, []string{"test.notexist"}) - asserts.Equal([]string{}, list) + asserts.Equal([]string{"test.notexist"}, list) asserts.Error(err) }