diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-04-22 16:23:59 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-04-22 16:23:59 +0300 |
commit | c6e65ff37ac95213ac5abfc9959d5ae43e98e1f5 (patch) | |
tree | 6a02b64ac3406877e2e6cf3aba8d5ffe1bb8d473 /test | |
parent | 626417a23a29ee4852a1cc1d267c54f5cb6f399e (diff) |
Fix proxy test running for non proxied listeners
Diffstat (limited to 'test')
-rw-r--r-- | test/acceptance/serving_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/acceptance/serving_test.go b/test/acceptance/serving_test.go index 399345b3..af1f9bef 100644 --- a/test/acceptance/serving_test.go +++ b/test/acceptance/serving_test.go @@ -574,14 +574,13 @@ func TestGitLabSourceBecomesUnauthorized(t *testing.T) { func TestKnownHostInReverseProxySetupReturns200(t *testing.T) { skipUnlessEnabled(t) - var listeners = []ListenSpec{ + specs := []ListenSpec{ proxyListener, } - - teardown := RunPagesProcess(t, *pagesBinary, listeners, "") + teardown := RunPagesProcess(t, *pagesBinary, specs, "") defer teardown() - for _, spec := range SupportedListeners() { + for _, spec := range specs { rsp, err := GetProxiedPageFromListener(t, spec, "localhost", "group.gitlab-example.com", "project/") require.NoError(t, err) |