From b7e2fdeb37a42880abcca4d8fff88b7c8fa70f0e Mon Sep 17 00:00:00 2001 From: Sahil Sharma Date: Fri, 11 Oct 2019 13:00:58 +0000 Subject: [PATCH] Migrates tests for "model/initial_load_test.go" to use testify (#12582) --- model/initial_load_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/model/initial_load_test.go b/model/initial_load_test.go index ecae7ac881..980dcea11f 100644 --- a/model/initial_load_test.go +++ b/model/initial_load_test.go @@ -4,6 +4,7 @@ package model import ( + "github.com/stretchr/testify/require" "strings" "testing" ) @@ -14,7 +15,5 @@ func TestInitialLoadJson(t *testing.T) { json := o.ToJson() ro := InitialLoadFromJson(strings.NewReader(json)) - if o.User.Id != ro.User.Id { - t.Fatal("Ids do not match") - } + require.Equal(t, o.User.Id, ro.User.Id, "Ids do not match") }