MM-40813: Use config service more extensively (#19679)

https://mattermost.atlassian.net/browse/MM-40816

```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Agniva De Sarker
2022-03-07 20:48:55 +05:30
коммит произвёл GitHub
родитель cf6aa85d28
Коммит a2fc602bc2
6 изменённых файлов: 14 добавлений и 14 удалений

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

@@ -3542,7 +3542,7 @@ func TestLoginWithLag(t *testing.T) {
t.Skipf("requires test flag: -mysql-replica")
}
if *th.App.Srv().Config().SqlSettings.DriverName != model.DatabaseDriverMysql {
if *th.App.Config().SqlSettings.DriverName != model.DatabaseDriverMysql {
t.Skipf("requires %q database driver", model.DatabaseDriverMysql)
}