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 'internal/httprange/http_reader_test.go')
-rw-r--r--internal/httprange/http_reader_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/httprange/http_reader_test.go b/internal/httprange/http_reader_test.go
index 5e971575..9c8f11d0 100644
--- a/internal/httprange/http_reader_test.go
+++ b/internal/httprange/http_reader_test.go
@@ -226,9 +226,13 @@ func TestReaderSetResponse(t *testing.T) {
status: http.StatusRequestedRangeNotSatisfiable,
expectedErrMsg: ErrRangeRequestsNotSupported.Error(),
},
- "unhandled_status_code": {
+ "not_found": {
status: http.StatusNotFound,
- expectedErrMsg: "httprange: read response 404:",
+ expectedErrMsg: ErrNotFound.Error(),
+ },
+ "unhandled_status_code": {
+ status: http.StatusInternalServerError,
+ expectedErrMsg: "httprange: read response 500:",
},
}
for name, tt := range tests {