Migrated t.fatal to testify/require. (#12625)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
94a77e2ddb
Коммит
b56ce0e67a
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user