@@ -167,7 +167,7 @@ public void afterEach() {
167167 }
168168
169169 @ AfterClass
170- public static void afterAll () throws IOException {
170+ public static void afterAll () throws Exception {
171171 Assert .assertFalse ("missing GOOGLE_CLOUD_PROJECT" , Strings .isNullOrEmpty (PROJECT_ID ));
172172
173173 deleteRegionalSecret (TEST_REGIONAL_SECRET .getName ());
@@ -226,7 +226,7 @@ private static void createTags() throws IOException{
226226
227227 }
228228
229- private static void deleteTags () throws IOException {
229+ private static void deleteTags () throws Exception {
230230 try (TagValuesClient tagValuesClient = TagValuesClient .create ()) {
231231 DeleteTagValueRequest request =
232232 DeleteTagValueRequest .newBuilder ()
@@ -235,8 +235,6 @@ private static void deleteTags() throws IOException{
235235 OperationFuture <TagValue , DeleteTagValueMetadata > future =
236236 tagValuesClient .deleteTagValueOperationCallable ().futureCall (request );
237237 TagValue response = future .get ();
238- }catch (Exception e ){
239- System .out .printf ("Unable to delete Tag key %s\n " , e .toString ());
240238 }
241239
242240 try (TagKeysClient tagKeysClient = TagKeysClient .create ()) {
@@ -248,7 +246,7 @@ private static void deleteTags() throws IOException{
248246 tagKeysClient .deleteTagKeyOperationCallable ().futureCall (request );
249247 TagKey response = future .get ();
250248 }catch (Exception e ){
251- System .out .printf ("Unable to delete Tag Value %s\n " , e .toString ());
249+ System .out .printf ("Unable to delete Tag key %s\n " , e .toString ());
252250 }
253251 }
254252
0 commit comments