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()
|
||||
|
||||
config := th.App.ClientConfigWithComputed()
|
||||
if _, ok := config["NoAccounts"]; !ok {
|
||||
t.Fatal("expected NoAccounts in returned config")
|
||||
}
|
||||
if _, ok := config["MaxPostSize"]; !ok {
|
||||
t.Fatal("expected MaxPostSize in returned config")
|
||||
}
|
||||
_, ok := config["NoAccounts"]
|
||||
assert.True(t, ok, "expected NoAccounts in returned config")
|
||||
_, ok = config["MaxPostSize"]
|
||||
assert.True(t, ok, "expected MaxPostSize in returned config")
|
||||
}
|
||||
|
||||
func TestEnsureInstallationDate(t *testing.T) {
|
||||
|
||||
Ссылка в новой задаче
Block a user