Skip to content

Commit a451ab2

Browse files
authored
test: update error message classifier for rapid bucket creation failure (#3106)
1 parent 1fd1090 commit a451ab2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • google-cloud-storage/src/test/java/com/google/cloud/storage/it/runner/registry

google-cloud-storage/src/test/java/com/google/cloud/storage/it/runner/registry/BucketInfoShim.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public void start() {
5454
createdBucket = s.create(bucketInfo).asBucketInfo();
5555
} catch (StorageException se) {
5656
String msg = se.getMessage();
57-
if (se.getCode() == 400 && msg.contains("not a valid zone in location")) {
57+
if (se.getCode() == 400 && (msg.contains("not a valid zone in location"))
58+
|| msg.contains("custom placement config")) {
5859
assumeTrue(
5960
"Skipping test due to bucket setup unavailable in current zone. (" + msg + ")", false);
6061
}

0 commit comments

Comments
 (0)