Commit 42b011b8 authored by Phillip Ahereza's avatar Phillip Ahereza Committed by jfrerich
Browse files

Migrate tests from mfa_test.go to use testify (#12720)

parent 1a2197ec
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment