MM-19015 Migrate tests from "cmd/mattermost/commands/config_te… (#12627)

- change t.fatal to require package of the testify toolkit
Этот коммит содержится в:
Ogundele Olumide
2019-10-08 07:09:39 +01:00
коммит произвёл Michael Kochell
родитель bb203bad4a
Коммит f21b7618a4

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

@@ -453,9 +453,7 @@ func TestUpdateMap(t *testing.T) {
t.Run(test.Name, func(t *testing.T) {
err := UpdateMap(configMap, test.configSettings, test.newVal)
if err != nil {
t.Fatal("Wasn't expecting an error: ", err)
}
require.Nil(t, err, "Wasn't expecting an error")
if !contains(configMap, test.expected, test.configSettings) {
t.Error("update didn't happen")