Skip to content

Commit

Permalink
fix: Catch StorageException in IT to temporarily unblock release (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanedey authored Dec 4, 2024
1 parent 5e13dab commit 730f794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/com/google/firebase/cloud/StorageClientIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import com.google.cloud.storage.Blob;
import com.google.cloud.storage.Bucket;
import com.google.cloud.storage.StorageException;
import com.google.common.io.CharStreams;
import com.google.firebase.testing.IntegrationTestUtils;
import java.io.IOException;
Expand Down Expand Up @@ -52,7 +53,7 @@ public void testCloudStorageNonExistingBucket() {
try {
storage.bucket("non-existing");
fail("No error thrown for non-existing bucket");
} catch (IllegalArgumentException expected) {
} catch (IllegalArgumentException | StorageException expected) {
// ignore
}
}
Expand Down

0 comments on commit 730f794

Please sign in to comment.