From 1f6cf84bb29aed5d45daf9e19148cb33f4b4bf3e Mon Sep 17 00:00:00 2001 From: Nilesh Kevlani Date: Thu, 3 Oct 2019 02:55:36 +0530 Subject: [PATCH] Replaced t.Fatal with require.Equal (#12536) --- model/mfa_secret_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/mfa_secret_test.go b/model/mfa_secret_test.go index e61359310e..a554bf912f 100644 --- a/model/mfa_secret_test.go +++ b/model/mfa_secret_test.go @@ -6,6 +6,8 @@ package model import ( "strings" "testing" + + "github.com/stretchr/testify/require" ) func TestMfaSecretJson(t *testing.T) { @@ -13,7 +15,5 @@ func TestMfaSecretJson(t *testing.T) { json := secret.ToJson() result := MfaSecretFromJson(strings.NewReader(json)) - if secret.Secret != result.Secret { - t.Fatal("Secrets do not match") - } + require.Equal(t, secret.Secret, result.Secret, "Secrets do not match") }