From 243c312066809954f74d946c44abf8c02c8d3af3 Mon Sep 17 00:00:00 2001 From: Aaron Liu <912394456@qq.com> Date: Sun, 11 Jun 2023 09:50:57 +0800 Subject: [PATCH] fix: failed UT --- pkg/mocks/wopimock/mock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mocks/wopimock/mock.go b/pkg/mocks/wopimock/mock.go index a11eb4ff14..0573c047a0 100644 --- a/pkg/mocks/wopimock/mock.go +++ b/pkg/mocks/wopimock/mock.go @@ -10,7 +10,7 @@ type WopiClientMock struct { mock.Mock } -func (w *WopiClientMock) NewSession(user *model.User, file *model.File, action wopi.ActonType) (*wopi.Session, error) { +func (w *WopiClientMock) NewSession(user uint, file *model.File, action wopi.ActonType) (*wopi.Session, error) { args := w.Called(user, file, action) return args.Get(0).(*wopi.Session), args.Error(1) }