Skip to content

Commit 730f794

Browse files
authored
fix: Catch StorageException in IT to temporarily unblock release (#1043)
1 parent 5e13dab commit 730f794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/google/firebase/cloud/StorageClientIT.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import com.google.cloud.storage.Blob;
2525
import com.google.cloud.storage.Bucket;
26+
import com.google.cloud.storage.StorageException;
2627
import com.google.common.io.CharStreams;
2728
import com.google.firebase.testing.IntegrationTestUtils;
2829
import java.io.IOException;
@@ -52,7 +53,7 @@ public void testCloudStorageNonExistingBucket() {
5253
try {
5354
storage.bucket("non-existing");
5455
fail("No error thrown for non-existing bucket");
55-
} catch (IllegalArgumentException expected) {
56+
} catch (IllegalArgumentException | StorageException expected) {
5657
// ignore
5758
}
5859
}

0 commit comments

Comments
 (0)