From f21b7618a4821fab5e40639dc8013fbace7832b0 Mon Sep 17 00:00:00 2001 From: Ogundele Olumide Date: Tue, 8 Oct 2019 07:09:39 +0100 Subject: [PATCH] =?UTF-8?q?MM-19015=20Migrate=20tests=20from=20"cmd/matter?= =?UTF-8?q?most/commands/config=5Fte=E2=80=A6=20(#12627)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - change t.fatal to require package of the testify toolkit --- cmd/mattermost/commands/config_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/mattermost/commands/config_test.go b/cmd/mattermost/commands/config_test.go index 607f4f4a70..1bd6c63c0a 100644 --- a/cmd/mattermost/commands/config_test.go +++ b/cmd/mattermost/commands/config_test.go @@ -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")