MM-60413: Fix issues due to incorrect cache provider (#28181)

We were using a mock cache provider which mixed up LRU caches
with each other. This led to incorrect unmarshalling method calls.

We fix this by using the real cache provider.

https://mattermost.atlassian.net/browse/MM-60413

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2024-09-17 09:37:54 +05:30
коммит произвёл GitHub
родитель 1909206e16
Коммит f18323980f
5 изменённых файлов: 8 добавлений и 24 удалений

6
server/platform/services/cache/lru_test.go поставляемый
Просмотреть файл

@@ -294,12 +294,12 @@ func TestLRUMarshalUnMarshal(t *testing.T) {
u.Timezone = nil
require.Equal(t, user, u)
tt := make(map[string]*model.User)
tt := make(model.UserMap)
tt["1"] = u
err = l.SetWithDefaultExpiry("mm", model.UserMap(tt))
err = l.SetWithDefaultExpiry("mm", tt)
require.NoError(t, err)
var out map[string]*model.User
var out model.UserMap
err = l.Get("mm", &out)
require.NoError(t, err)
out["1"].Timezone = nil