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:
Diffstat (limited to 'helpers_test.go')
-rw-r--r--helpers_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers_test.go b/helpers_test.go
index eec3c94b..2e6fec58 100644
--- a/helpers_test.go
+++ b/helpers_test.go
@@ -542,6 +542,9 @@ func newZipFileServerURL(t *testing.T, zipFilePath string) (string, func()) {
m.HandleFunc("/public.zip", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, zipFilePath)
}))
+ m.HandleFunc("/malformed.zip", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ w.WriteHeader(http.StatusInternalServerError)
+ }))
// create a listener with the desired port.
l, err := net.Listen("tcp", objectStorageMockServer)