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