Skip to content

Commit f20fa0b

Browse files
authored
Condensing Successful responses (#2722)
1 parent 07b7af5 commit f20fa0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integration/user_api_bucket_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ func setupBucketForEndpoint(name string, locking, versioning bool, quota, retent
167167
return false
168168
}
169169
if response != nil {
170+
if response.StatusCode >= 200 && response.StatusCode <= 299 {
171+
fmt.Println("setupBucketForEndpoint(): HTTP Status is in the 2xx range")
172+
return true
173+
}
170174
if response.StatusCode != expected {
171175
assert.Fail(inspectHTTPResponse(response))
172176
return false

0 commit comments

Comments
 (0)