Skip to content

Commit ceb397f

Browse files
Moved clean up method
1 parent 6636857 commit ceb397f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compute/cloud-client/src/test/java/compute/disks/HyperdisksIT.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ public static void setUp()
6262
throws IOException, ExecutionException, InterruptedException, TimeoutException {
6363
requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS");
6464
requireEnvVar("GOOGLE_CLOUD_PROJECT");
65-
// Clean up stale resources
66-
Util.cleanUpExistingDisks("test-hyperdisk-enc-", PROJECT_ID, ZONE);
67-
Util.cleanUpExistingStoragePool("test-storage-pool-enc-", PROJECT_ID, ZONE);
6865
}
6966

7067
@AfterAll
@@ -75,6 +72,10 @@ public static void cleanup()
7572
DeleteDisk.deleteDisk(PROJECT_ID, ZONE, HYPERDISK_IN_POOL_NAME);
7673

7774
Util.deleteStoragePool(PROJECT_ID, ZONE, STORAGE_POOL_NAME);
75+
76+
// Clean up stale resources
77+
Util.cleanUpExistingDisks("test-hyperdisk-enc-", PROJECT_ID, ZONE);
78+
Util.cleanUpExistingStoragePool("test-storage-pool-enc-", PROJECT_ID, ZONE);
7879
}
7980

8081
@Test

0 commit comments

Comments
 (0)