From 42b011b81d912d0d94d566f016473fa656b9ca5d Mon Sep 17 00:00:00 2001 From: Phillip Ahereza Date: Wed, 16 Oct 2019 06:09:12 +0300 Subject: [PATCH] Migrate tests from mfa_test.go to use testify (#12720) --- services/mfa/mfa_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/mfa/mfa_test.go b/services/mfa/mfa_test.go index b89199883d..6f826cdbda 100644 --- a/services/mfa/mfa_test.go +++ b/services/mfa/mfa_test.go @@ -41,9 +41,7 @@ func TestGenerateSecret(t *testing.T) { assert.Len(t, secret, 32) - if len(img) == 0 { - t.Fatal("no image set") - } + require.NotEmpty(t, img, "no image set") config.ServiceSettings.EnableMultifactorAuthentication = model.NewBool(false)