From 4a6cf29d4ecec63f7364439341ea5cd7781916cd Mon Sep 17 00:00:00 2001 From: Shobhit Gupta Date: Thu, 17 Oct 2019 10:41:45 -0700 Subject: [PATCH] Migrate tests to use testify (#12811) --- api4/terms_of_service_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api4/terms_of_service_test.go b/api4/terms_of_service_test.go index 962cf12ccc..3e04f82434 100644 --- a/api4/terms_of_service_test.go +++ b/api4/terms_of_service_test.go @@ -5,6 +5,7 @@ import ( "github.com/mattermost/mattermost-server/model" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestGetTermsOfService(t *testing.T) { @@ -13,9 +14,7 @@ func TestGetTermsOfService(t *testing.T) { Client := th.Client _, err := th.App.CreateTermsOfService("abc", th.BasicUser.Id) - if err != nil { - t.Fatal(err) - } + require.Nil(t, err) termsOfService, resp := Client.GetTermsOfService("") CheckNoError(t, resp)