From 041c914de70e996b944c36cf4f69759b0a0fbb9f Mon Sep 17 00:00:00 2001 From: Aliaksandr Kantsevoi Date: Tue, 8 Oct 2019 08:27:53 +0200 Subject: [PATCH] =?UTF-8?q?Migrate=20tests=20from=20"model/switch=5Freques?= =?UTF-8?q?t=5Ftest.go"=20to=20use=20testi=E2=80=A6=20(#12554)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/switch_request_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/switch_request_test.go b/model/switch_request_test.go index 49302fba67..bbd33e66e8 100644 --- a/model/switch_request_test.go +++ b/model/switch_request_test.go @@ -6,6 +6,8 @@ package model import ( "strings" "testing" + + "github.com/stretchr/testify/require" ) func TestSwitchRequestJson(t *testing.T) { @@ -13,7 +15,5 @@ func TestSwitchRequestJson(t *testing.T) { json := o.ToJson() ro := SwitchRequestFromJson(strings.NewReader(json)) - if o.Email != ro.Email { - t.Fatal("Emails do not match") - } + require.Equal(t, o.Email, ro.Email, "Emails do not match") }