From 4cf6c815345e6052fd55531d1e492c9ea151da42 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Tue, 2 Mar 2021 12:32:34 +0800 Subject: [PATCH] Fix: failed unit test --- pkg/filesystem/driver/local/handler_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/filesystem/driver/local/handler_test.go b/pkg/filesystem/driver/local/handler_test.go index cd0bdc7..6d6f98d 100644 --- a/pkg/filesystem/driver/local/handler_test.go +++ b/pkg/filesystem/driver/local/handler_test.go @@ -75,8 +75,8 @@ func TestHandler_Delete(t *testing.T) { asserts.NoError(err) list, err = handler.Delete(ctx, []string{"test.file", "test.notexist"}) file.Close() - asserts.Equal([]string{"test.file"}, list) - asserts.Error(err) + asserts.Equal([]string{}, list) + asserts.NoError(err) list, err = handler.Delete(ctx, []string{"test.notexist"}) asserts.Equal([]string{}, list) @@ -86,8 +86,8 @@ func TestHandler_Delete(t *testing.T) { asserts.NoError(err) list, err = handler.Delete(ctx, []string{"test.file"}) _ = file.Close() - asserts.Equal([]string{"test.file"}, list) - asserts.Error(err) + asserts.Equal([]string{}, list) + asserts.NoError(err) } func TestHandler_Get(t *testing.T) {