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:
authorJaime Martinez <jmartinez@gitlab.com>2020-10-16 08:12:02 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-10-20 07:57:19 +0300
commitd795759d6737150adc1a621c8f68e317b1a7127d (patch)
treee0631d07b50e686b9d5e49f4c6b022e1f5607b79
parent2c61077500615378daf28bcc11f3bf685539fdb9 (diff)
Fix go vet issue
-rw-r--r--internal/httprange/resource_test.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/httprange/resource_test.go b/internal/httprange/resource_test.go
index 14c078c1..b2ed3cb6 100644
--- a/internal/httprange/resource_test.go
+++ b/internal/httprange/resource_test.go
@@ -34,11 +34,12 @@ func TestNewResource(t *testing.T) {
url: "/some/resource",
status: http.StatusPartialContent,
contentRange: "bytes 200-1000/67589",
- want: func() *Resource {
- r := *resource
- r.Size = 67589
- return &r
- }(),
+ want: &Resource{
+ url: "/some/resource",
+ ETag: "etag",
+ LastModified: "Wed, 21 Oct 2015 07:28:00 GMT",
+ Size: 67589,
+ },
},
"status_partial_content_invalid_content_range": {
url: "/some/resource",