Skip to content

Commit

Permalink
test: add OperationAborted to the list of erros ignored on bucket cre…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
SergeyRyabinin committed Jan 29, 2024
1 parent 669654e commit e2bc07e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/aws-cpp-sdk-s3-crt-integration-tests/S3ExpressTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ namespace {
.WithDataRedundancy(DataRedundancy::SingleAvailabilityZone))));

if (!outcome.IsSuccess() && outcome.GetError().GetResponseCode() == Aws::Http::HttpResponseCode::CONFLICT &&
outcome.GetError().GetExceptionName() == "BucketAlreadyOwnedByYou") {
(outcome.GetError().GetExceptionName() == "BucketAlreadyOwnedByYou" ||
outcome.GetError().GetExceptionName() == "OperationAborted")) {
return CreateBucketOutcome(CreateBucketResult());
}

Expand Down
3 changes: 2 additions & 1 deletion tests/aws-cpp-sdk-s3-integration-tests/S3ExpressTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ namespace {
.WithDataRedundancy(DataRedundancy::SingleAvailabilityZone))));

if (!outcome.IsSuccess() && outcome.GetError().GetResponseCode() == Aws::Http::HttpResponseCode::CONFLICT &&
outcome.GetError().GetExceptionName() == "BucketAlreadyOwnedByYou") {
(outcome.GetError().GetExceptionName() == "BucketAlreadyOwnedByYou" ||
outcome.GetError().GetExceptionName() == "OperationAborted")) {
return CreateBucketOutcome(CreateBucketResult());
}

Expand Down

0 comments on commit e2bc07e

Please sign in to comment.