Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-06-22 22:12:49 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-06-22 22:12:49 +0300
commit4453ff4b08fcbff9955029d8233f75ec1e171760 (patch)
treed52421a5b5f41b8a1ff80af777f9243bf2397c11 /test/acceptance
parent3fb57b7a2989b50ca4c9543ec86c1f5751cf1a41 (diff)
Serve 404 if ctx is canceled while resolving a domain
Diffstat (limited to 'test/acceptance')
-rw-r--r--test/acceptance/serving_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/acceptance/serving_test.go b/test/acceptance/serving_test.go
index 92e9c8c7..cf50069d 100644
--- a/test/acceptance/serving_test.go
+++ b/test/acceptance/serving_test.go
@@ -569,7 +569,7 @@ func TestSlowRequests(t *testing.T) {
defer cancel()
url := httpListener.URL("/index.html")
- req, err := http.NewRequestWithContext(ctx, "GET", url, nil)
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
require.NoError(t, err)
req.Host = "group.gitlab-example.com"