MM-19015 Migrate tests from "cmd/mattermost/commands/config_te… (#12627)
- change t.fatal to require package of the testify toolkit
Этот коммит содержится в:
коммит произвёл
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")
|
||||
|
||||
Ссылка в новой задаче
Block a user