Skip to content

Commit

Permalink
Condensing Successful responses (#2722)
Browse files Browse the repository at this point in the history
  • Loading branch information
cniackz authored Mar 17, 2023
1 parent 07b7af5 commit f20fa0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/user_api_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ func setupBucketForEndpoint(name string, locking, versioning bool, quota, retent
return false
}
if response != nil {
if response.StatusCode >= 200 && response.StatusCode <= 299 {
fmt.Println("setupBucketForEndpoint(): HTTP Status is in the 2xx range")
return true
}
if response.StatusCode != expected {
assert.Fail(inspectHTTPResponse(response))
return false
Expand Down

0 comments on commit f20fa0b

Please sign in to comment.