Skip to content

Commit fca419e

Browse files
authored
chore: Fix non-existing bucket test (#1056)
1 parent 4f4979d commit fca419e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

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

2424
import com.google.cloud.storage.Blob;
2525
import com.google.cloud.storage.Bucket;
26-
import com.google.cloud.storage.StorageException;
2726
import com.google.common.io.CharStreams;
2827
import com.google.firebase.testing.IntegrationTestUtils;
2928
import java.io.IOException;
@@ -51,9 +50,9 @@ public void testCloudStorageCustomBucket() {
5150
public void testCloudStorageNonExistingBucket() {
5251
StorageClient storage = StorageClient.getInstance(IntegrationTestUtils.ensureDefaultApp());
5352
try {
54-
storage.bucket("non-existing");
53+
storage.bucket("non.existing");
5554
fail("No error thrown for non-existing bucket");
56-
} catch (IllegalArgumentException | StorageException expected) {
55+
} catch (IllegalArgumentException expected) {
5756
// ignore
5857
}
5958
}

0 commit comments

Comments
 (0)