mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Replaced t.Fatal with require.Equal (#12536)
This commit is contained in:
committed by
Elias Nahum
parent
2f77622b89
commit
1f6cf84bb2
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user