diff --git a/src/test/java/com/google/firebase/cloud/StorageClientIT.java b/src/test/java/com/google/firebase/cloud/StorageClientIT.java index 57fe58b82..4542e9735 100644 --- a/src/test/java/com/google/firebase/cloud/StorageClientIT.java +++ b/src/test/java/com/google/firebase/cloud/StorageClientIT.java @@ -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; @@ -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 } }