Migrated t.fatal to testify/require. (#12625)

This commit is contained in:
Karan Nadagoudar
2019-10-11 18:35:36 +05:30
committed by Jesús Espino
parent 94a77e2ddb
commit b56ce0e67a

View File

@@ -22,9 +22,7 @@ func TestOAuthAppJson(t *testing.T) {
json := a1.ToJson()
ra1 := OAuthAppFromJson(strings.NewReader(json))
if a1.Id != ra1.Id {
t.Fatal("ids did not match")
}
require.Equal(t, a1.Id, ra1.Id, "ids did not match")
}
func TestOAuthAppPreSave(t *testing.T) {