fix test (#10212)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
51ef1ee32f
Коммит
86aa01cf36
@@ -68,16 +68,16 @@ func TestShowWebhook(t *testing.T) {
|
|||||||
|
|
||||||
config := th.Config()
|
config := th.Config()
|
||||||
*config.ServiceSettings.EnableCommands = true
|
*config.ServiceSettings.EnableCommands = true
|
||||||
config.ServiceSettings.EnableIncomingWebhooks = true
|
*config.ServiceSettings.EnableIncomingWebhooks = true
|
||||||
config.ServiceSettings.EnableOutgoingWebhooks = true
|
*config.ServiceSettings.EnableOutgoingWebhooks = true
|
||||||
config.ServiceSettings.EnablePostUsernameOverride = true
|
*config.ServiceSettings.EnablePostUsernameOverride = true
|
||||||
config.ServiceSettings.EnablePostIconOverride = true
|
*config.ServiceSettings.EnablePostIconOverride = true
|
||||||
th.SetConfig(config)
|
th.SetConfig(config)
|
||||||
|
|
||||||
th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableIncomingWebhooks = true })
|
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableIncomingWebhooks = true })
|
||||||
th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableOutgoingWebhooks = true })
|
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOutgoingWebhooks = true })
|
||||||
th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnablePostUsernameOverride = true })
|
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnablePostUsernameOverride = true })
|
||||||
th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnablePostIconOverride = true })
|
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnablePostIconOverride = true })
|
||||||
|
|
||||||
defaultRolePermissions := th.SaveDefaultRolePermissions()
|
defaultRolePermissions := th.SaveDefaultRolePermissions()
|
||||||
defer func() {
|
defer func() {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user