@@ -36,9 +36,9 @@ func dummyWebsocketHandler(t *testing.T) http.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
func registerDummyWebConn(t *testing.T, a *App, addr net.Addr, userId string) *WebConn {
|
||||
func registerDummyWebConn(t *testing.T, a *App, addr net.Addr, userID string) *WebConn {
|
||||
session, appErr := a.CreateSession(&model.Session{
|
||||
UserId: userId,
|
||||
UserId: userID,
|
||||
})
|
||||
require.Nil(t, appErr)
|
||||
|
||||
@@ -173,7 +173,7 @@ func TestHubSessionRevokeRace(t *testing.T) {
|
||||
|
||||
go func() {
|
||||
for i := 0; i <= broadcastQueueSize; i++ {
|
||||
hub.Broadcast(model.NewWebSocketEvent("", "teamId", "", "", nil))
|
||||
hub.Broadcast(model.NewWebSocketEvent("", "teamID", "", "", nil))
|
||||
}
|
||||
close(done)
|
||||
}()
|
||||
|
||||
Ссылка в новой задаче
Block a user