Change: Fix errcheck issues in server/channels/app/platform/session_test.go (#29376)

Этот коммит содержится в:
Ivy Gesare
2024-11-26 05:15:13 +03:00
коммит произвёл GitHub
родитель 049aa42633
Коммит 193f9463ed
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@@ -105,7 +105,6 @@ issues:
channels/app/platform/service.go|\
channels/app/platform/service_test.go|\
channels/app/platform/session.go|\
channels/app/platform/session_test.go|\
channels/app/platform/status.go|\
channels/app/platform/web_broadcast_hook.go|\
channels/app/platform/web_conn.go|\

Просмотреть файл

@@ -34,11 +34,13 @@ func TestCache(t *testing.T) {
UserId: model.NewId(),
}
th.Service.sessionCache.SetWithExpiry(session.Token, session, 5*time.Minute)
th.Service.sessionCache.SetWithExpiry(session2.Token, session2, 5*time.Minute)
err := th.Service.sessionCache.SetWithExpiry(session.Token, session, 5*time.Minute)
require.NoError(t, err)
err = th.Service.sessionCache.SetWithExpiry(session2.Token, session2, 5*time.Minute)
require.NoError(t, err)
var keys []string
err := th.Service.sessionCache.Scan(func(in []string) error {
err = th.Service.sessionCache.Scan(func(in []string) error {
keys = append(keys, in...)
return nil
})