Skip to content

Commit

Permalink
expect units in range header
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
  • Loading branch information
jdolitsky committed Apr 12, 2023
1 parent f0122f6 commit a5582e3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions conformance/02_push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,7 @@ var test02Push = func() {
Expect(err).To(BeNil())
Expect(resp.StatusCode()).To(Equal(http.StatusNoContent))
Expect(resp.Header().Get("Location")).ToNot(BeEmpty())
Expect(resp.Header().Get("Range")).To(SatisfyAny(
Equal(testBlobBChunk1Range), // Allow missing "bytes=" prefix
Equal(fmt.Sprintf("bytes=%s", testBlobBChunk1Range)),
))
Expect(resp.Header().Get("Range")).To(Equal(fmt.Sprintf("bytes=%s", testBlobBChunk1Range)))
lastResponse = resp
})

Expand Down

0 comments on commit a5582e3

Please sign in to comment.