Skip to content

Commit

Permalink
Do not panic conformance when last request fails (#450)
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Mitchell <[email protected]>
  • Loading branch information
sudo-bmitch authored Jul 22, 2023
1 parent f641ac6 commit 212108f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conformance/02_push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var test02Push = func() {

g.Specify("PUT request to session URL with digest should yield 201 response", func() {
SkipIfDisabled(push)
Expect(lastResponse).ToNot(BeNil())
req := client.NewRequest(reggie.PUT, lastResponse.GetRelativeLocation()).
SetQueryParam("digest", testBlobADigest).
SetHeader("Content-Type", "application/octet-stream").
Expand Down Expand Up @@ -83,6 +84,7 @@ var test02Push = func() {

g.Specify("GET request to blob URL from prior request should yield 200 or 404 based on response code", func() {
SkipIfDisabled(push)
Expect(lastResponse).ToNot(BeNil())
req := client.NewRequest(reggie.GET, "/v2/<name>/blobs/<digest>", reggie.WithDigest(configs[1].Digest))
resp, err := client.Do(req)
Expect(err).To(BeNil())
Expand Down

0 comments on commit 212108f

Please sign in to comment.