Fix racy TestReliableWebSocketSend (#19620)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2a59047d07
Коммит
d04b69c9cb
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/mattermost/mattermost-server/v6/config"
|
||||
"github.com/mattermost/mattermost-server/v6/einterfaces"
|
||||
"github.com/mattermost/mattermost-server/v6/model"
|
||||
"github.com/mattermost/mattermost-server/v6/shared/mlog"
|
||||
"github.com/mattermost/mattermost-server/v6/store"
|
||||
@@ -111,3 +112,10 @@ func ServerConnector(ch *Channels) AppOption {
|
||||
a.ch = ch
|
||||
}
|
||||
}
|
||||
|
||||
func setCluster(cluster einterfaces.ClusterInterface) Option {
|
||||
return func(s *Server) error {
|
||||
s.Cluster = cluster
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user