Convert app/config_test.go t.Fatal calls into assert/require c… (#12220)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
d130131a88
Коммит
7464449478
@@ -68,12 +68,10 @@ func TestClientConfigWithComputed(t *testing.T) {
|
|||||||
defer th.TearDown()
|
defer th.TearDown()
|
||||||
|
|
||||||
config := th.App.ClientConfigWithComputed()
|
config := th.App.ClientConfigWithComputed()
|
||||||
if _, ok := config["NoAccounts"]; !ok {
|
_, ok := config["NoAccounts"]
|
||||||
t.Fatal("expected NoAccounts in returned config")
|
assert.True(t, ok, "expected NoAccounts in returned config")
|
||||||
}
|
_, ok = config["MaxPostSize"]
|
||||||
if _, ok := config["MaxPostSize"]; !ok {
|
assert.True(t, ok, "expected MaxPostSize in returned config")
|
||||||
t.Fatal("expected MaxPostSize in returned config")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestEnsureInstallationDate(t *testing.T) {
|
func TestEnsureInstallationDate(t *testing.T) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user