[MM-43798] Change default CRT option from Disabled to AlwaysOn (#20114)

* MM-32692 Add two more CRT options

* [MM-43798] Change CRT default to AlwaysOn

* Rename variable

* fix test

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Ashish Bhate <ashish.bhate@mattermost.com>
Этот коммит содержится в:
Vishal
2022-05-18 22:23:41 +05:30
коммит произвёл GitHub
родитель 91ffe24c14
Коммит 2a9f78536f
2 изменённых файлов: 3 добавлений и 1 удалений

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

@@ -1152,8 +1152,10 @@ func TestClearPushNotificationSync(t *testing.T) {
mockStore.On("Session").Return(&mockSessionStore)
mockStore.On("GetDBSchemaVersion").Return(1, nil)
// When CRT is disabled
th.App.UpdateConfig(func(cfg *model.Config) {
*cfg.EmailSettings.PushNotificationServer = pushServer.URL
*cfg.ServiceSettings.CollapsedThreads = model.CollapsedThreadsDisabled
})
err := th.App.clearPushNotificationSync(sess1.Id, "user1", "channel1", "")