Convert app/config_test.go t.Fatal calls into assert/require c… (#12220)

Этот коммит содержится в:
Nikhil Ranjan
2019-09-24 14:49:23 +00:00
коммит произвёл 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) {