Move cluster, webhub and store out of Server (#20899)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
203df2f537
Коммит
5e69c6b02f
@@ -20,7 +20,7 @@ func TestGetPostsUsage(t *testing.T) {
|
||||
|
||||
errMsg := "Test posts count error"
|
||||
|
||||
mockStore := th.App.Srv().Store.(*mocks.Store)
|
||||
mockStore := th.App.Srv().Store().(*mocks.Store)
|
||||
mockPostStore := mocks.PostStore{}
|
||||
mockPostStore.On("AnalyticsPostCount", mock.Anything).Return(int64(0), errors.New(errMsg))
|
||||
mockStore.On("Post").Return(&mockPostStore)
|
||||
@@ -37,7 +37,7 @@ func TestGetPostsUsage(t *testing.T) {
|
||||
var mockCount int64 = 4321
|
||||
var expected int64 = 4000
|
||||
|
||||
mockStore := th.App.Srv().Store.(*mocks.Store)
|
||||
mockStore := th.App.Srv().Store().(*mocks.Store)
|
||||
mockPostStore := mocks.PostStore{}
|
||||
mockPostStore.On("AnalyticsPostCount", mock.Anything).Return(mockCount, nil)
|
||||
mockStore.On("Post").Return(&mockPostStore)
|
||||
|
||||
Ссылка в новой задаче
Block a user