MM-16935 - Flaky test: Elastic Search IndexChannel Error (#11709)

Этот коммит содержится в:
Ali Farooq
2019-07-26 18:53:12 -04:00
коммит произвёл GitHub
родитель 52ac87ea32
Коммит f6480d1ac6
3 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@@ -88,6 +88,10 @@ func setupTestHelper(enterprise bool, updateConfig func(*model.Config)) *TestHel
*cfg.TeamSettings.MaxUsersPerTeam = 50
*cfg.RateLimitSettings.Enable = false
*cfg.EmailSettings.SendEmailNotifications = true
// Disable sniffing, otherwise elastic client fails to connect to docker node
// More details: https://github.com/olivere/elastic/wiki/Sniffing
*cfg.ElasticsearchSettings.Sniff = false
})
prevListenAddress := *th.App.Config().ServiceSettings.ListenAddress
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.ListenAddress = ":0" })