mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Convert app/login_test.go t.Fatal calls into assert/require ca… (#12221)
This commit is contained in:
committed by
Ben Schumacher
parent
3802c1e4d3
commit
69eb2faf3d
@@ -6,6 +6,8 @@ package app
|
||||
import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestCheckForClientSideCert(t *testing.T) {
|
||||
@@ -30,8 +32,6 @@ func TestCheckForClientSideCert(t *testing.T) {
|
||||
|
||||
_, _, actualEmail := th.App.CheckForClientSideCert(r)
|
||||
|
||||
if actualEmail != tt.expectedEmail {
|
||||
t.Fatalf("CheckForClientSideCert(%v): expected %v, actual %v", tt.subject, tt.expectedEmail, actualEmail)
|
||||
}
|
||||
require.Equal(t, actualEmail, tt.expectedEmail, "CheckForClientSideCert(%v): expected %v, actual %v", tt.subject, tt.expectedEmail, actualEmail)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user