> @@ -213,4 +224,20 @@ private void assertInstanceEquals(Instance result, 
> InstanceTemplate expected) {
>        assertEquals(result.getName(), expected.getName());
>        assertEquals(result.getMetadata().getItems(), expected.getMetadata());
>     }
> +
> +   @AfterClass(groups = { "integration", "live" })
> +   protected void tearDownContext() {
> +      try {
> +         waitZoneOperationDone(api().deleteInZone(DEFAULT_ZONE_NAME, 
> INSTANCE_NAME), TIME_WAIT);
> +         
> waitZoneOperationDone(api.getDiskApiForProject(userProject.get()).deleteInZone(DEFAULT_ZONE_NAME,
>  DISK_NAME),
> +                               TIME_WAIT);
> +         
> waitZoneOperationDone(api.getDiskApiForProject(userProject.get()).deleteInZone(DEFAULT_ZONE_NAME,
>  BOOT_DISK_NAME),
> +                               TIME_WAIT);
> +         
> waitGlobalOperationDone(api.getNetworkApiForProject(userProject.get()).delete
> +                                                                             
>    (INSTANCE_NETWORK_NAME), TIME_WAIT);
> +      } catch (Exception e) {
> +         // we don't really care about any exception here, so just delete 
> away.

log.error or System.err.println, just to have some warning?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/17/files#r8320665

Reply via email to