Skip to content

Commit

Permalink
chore: Fix non-existing bucket test (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanedey authored Jan 9, 2025
1 parent 4f4979d commit fca419e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/java/com/google/firebase/cloud/StorageClientIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

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 @@ -51,9 +50,9 @@ public void testCloudStorageCustomBucket() {
public void testCloudStorageNonExistingBucket() {
StorageClient storage = StorageClient.getInstance(IntegrationTestUtils.ensureDefaultApp());
try {
storage.bucket("non-existing");
storage.bucket("non.existing");
fail("No error thrown for non-existing bucket");
} catch (IllegalArgumentException | StorageException expected) {
} catch (IllegalArgumentException expected) {
// ignore
}
}
Expand Down

0 comments on commit fca419e

Please sign in to comment.