[MM-37760] Reduce export surface of client4 (#18102)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a8ca5c423f
Коммит
16d8640072
@@ -71,7 +71,7 @@ func TestGetPing(t *testing.T) {
|
||||
|
||||
th.TestForAllClients(t, func(t *testing.T, client *model.Client4) {
|
||||
th.App.ReloadConfig()
|
||||
resp, err := client.DoApiGet(client.GetSystemRoute()+"/ping", "")
|
||||
resp, err := client.DoApiGet("/system/ping", "")
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, http.StatusOK, resp.StatusCode)
|
||||
respBytes, err := ioutil.ReadAll(resp.Body)
|
||||
@@ -84,7 +84,7 @@ func TestGetPing(t *testing.T) {
|
||||
defer os.Unsetenv("MM_FEATUREFLAGS_TESTFEATURE")
|
||||
th.App.ReloadConfig()
|
||||
|
||||
resp, err = client.DoApiGet(client.GetSystemRoute()+"/ping", "")
|
||||
resp, err = client.DoApiGet("/system/ping", "")
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, http.StatusOK, resp.StatusCode)
|
||||
respBytes, err = ioutil.ReadAll(resp.Body)
|
||||
|
||||
Ссылка в новой задаче
Block a user