Only set cluster if unset (#19683)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f5b5a3c746
Коммит
897e7bb9e7
@@ -122,7 +122,7 @@ func (s *Server) initEnterprise() {
|
|||||||
s.Metrics = metricsInterface(s)
|
s.Metrics = metricsInterface(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
if clusterInterface != nil {
|
if clusterInterface != nil && s.Cluster == nil {
|
||||||
s.Cluster = clusterInterface(s)
|
s.Cluster = clusterInterface(s)
|
||||||
}
|
}
|
||||||
if elasticsearchInterface != nil {
|
if elasticsearchInterface != nil {
|
||||||
|
|||||||
@@ -338,7 +338,6 @@ func TestHubConnIndexInactive(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestReliableWebSocketSend(t *testing.T) {
|
func TestReliableWebSocketSend(t *testing.T) {
|
||||||
t.Skip("MM-42033")
|
|
||||||
testCluster := &testlib.FakeClusterInterface{}
|
testCluster := &testlib.FakeClusterInterface{}
|
||||||
|
|
||||||
th := SetupWithClusterMock(t, testCluster)
|
th := SetupWithClusterMock(t, testCluster)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user