diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-10-16 08:12:02 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-10-20 07:57:19 +0300 |
commit | d795759d6737150adc1a621c8f68e317b1a7127d (patch) | |
tree | e0631d07b50e686b9d5e49f4c6b022e1f5607b79 | |
parent | 2c61077500615378daf28bcc11f3bf685539fdb9 (diff) |
Fix go vet issue
-rw-r--r-- | internal/httprange/resource_test.go | 11 |
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", |