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/resource_test.go')
-rw-r--r--internal/httprange/resource_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/httprange/resource_test.go b/internal/httprange/resource_test.go
index 89d15a21..ace8f92c 100644
--- a/internal/httprange/resource_test.go
+++ b/internal/httprange/resource_test.go
@@ -2,7 +2,6 @@ package httprange
import (
"context"
- "fmt"
"net/http"
"net/http/httptest"
"testing"
@@ -60,7 +59,7 @@ func TestNewResource(t *testing.T) {
"not_found": {
url: "/some/resource",
status: http.StatusNotFound,
- expectedErrMsg: fmt.Sprintf("httprange: new resource %d: %q", http.StatusNotFound, "404 Not Found"),
+ expectedErrMsg: ErrNotFound.Error(),
},
"invalid_url": {
url: "/%",