Fix errcheck issue on master (#30938)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1bca62dc83
Коммит
0c38d893e3
@@ -153,7 +153,8 @@ func TestHubSessionRevokeRace(t *testing.T) {
|
|||||||
time.Sleep(2 * time.Second)
|
time.Sleep(2 * time.Second)
|
||||||
// We override the LastActivityAt which happens in NewWebConn.
|
// We override the LastActivityAt which happens in NewWebConn.
|
||||||
// This is needed to call RevokeSessionById which triggers the race.
|
// This is needed to call RevokeSessionById which triggers the race.
|
||||||
th.Service.AddSessionToCache(session)
|
err = th.Service.AddSessionToCache(session)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
for i := 0; i <= broadcastQueueSize; i++ {
|
for i := 0; i <= broadcastQueueSize; i++ {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user