Change: Fix errcheck issues in server/channels/app/platform/session_test.go (#29376)
Этот коммит содержится в:
@@ -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
|
||||
})
|
||||
|
||||
Ссылка в новой задаче
Block a user