diff options
author | Vladimir Shushlin <vshushlin@gitlab.com> | 2021-07-27 11:30:39 +0300 |
---|---|---|
committer | Vladimir Shushlin <vshushlin@gitlab.com> | 2021-07-27 11:30:39 +0300 |
commit | 7289bd565117369d67144b0c6fbe7fb89ecc807b (patch) | |
tree | 26ffb87139d3209f01ddcd7fd112ff7207a83e22 /test/acceptance | |
parent | f1b46a30003a9e7576e4af985a2b185041ef1756 (diff) | |
parent | 5d4f2febdeb070207518fc8957e2fa97d48c656b (diff) |
Merge branch 'fix/localhost-test' into 'master'
Replace localhost instances with 127.0.0.1
See merge request gitlab-org/gitlab-pages!526
Diffstat (limited to 'test/acceptance')
-rw-r--r-- | test/acceptance/metrics_test.go | 2 | ||||
-rw-r--r-- | test/acceptance/serving_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/acceptance/metrics_test.go b/test/acceptance/metrics_test.go index e12dfc99..9810d77f 100644 --- a/test/acceptance/metrics_test.go +++ b/test/acceptance/metrics_test.go @@ -23,7 +23,7 @@ func TestPrometheusMetricsCanBeScraped(t *testing.T) { require.NoError(t, err) require.Equal(t, http.StatusOK, res.StatusCode) - resp, err := http.Get("http://localhost:42345/metrics") + resp, err := http.Get("http://127.0.0.1:42345/metrics") require.NoError(t, err) defer resp.Body.Close() diff --git a/test/acceptance/serving_test.go b/test/acceptance/serving_test.go index 91e1181b..55933e39 100644 --- a/test/acceptance/serving_test.go +++ b/test/acceptance/serving_test.go @@ -544,7 +544,7 @@ func TestGitLabSourceBecomesUnauthorized(t *testing.T) { func TestKnownHostInReverseProxySetupReturns200(t *testing.T) { RunPagesProcessWithStubGitLabServer(t) - rsp, err := GetProxiedPageFromListener(t, proxyListener, "localhost", "group.gitlab-example.com", "project/") + rsp, err := GetProxiedPageFromListener(t, proxyListener, "127.0.0.1", "group.gitlab-example.com", "project/") require.NoError(t, err) rsp.Body.Close() |