From aa4a7e71dd291b48a225a6f03bfbbdece33b742f Mon Sep 17 00:00:00 2001 From: Sascha Andres Date: Fri, 4 Oct 2019 14:18:14 +0200 Subject: [PATCH] MM-19117 Migrate tests from "model/system_test.go" to use testify #12550 (#12574) --- model/system_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/system_test.go b/model/system_test.go index bf167a6ccf..161c2280f6 100644 --- a/model/system_test.go +++ b/model/system_test.go @@ -6,6 +6,8 @@ package model import ( "strings" "testing" + + "github.com/stretchr/testify/require" ) func TestSystemJson(t *testing.T) { @@ -13,7 +15,5 @@ func TestSystemJson(t *testing.T) { json := system.ToJson() result := SystemFromJson(strings.NewReader(json)) - if result.Name != "test" { - t.Fatal("Ids do not match") - } + require.Equal(t, "test", result.Name, "ids do not match") }