@@ -47,6 +47,7 @@ public class HyperdisksIT {
4747 private static String HYPERDISK_NAME ;
4848 private static String HYPERDISK_IN_POOL_NAME ;
4949 private static String STORAGE_POOL_NAME ;
50+ static String javaVersion = System .getProperty ("java.version" ).substring (0 , 2 );
5051
5152 // Check if the required environment variables are set.
5253 public static void requireEnvVar (String envVarName ) {
@@ -61,13 +62,11 @@ public static void setUp()
6162 requireEnvVar ("GOOGLE_CLOUD_PROJECT" );
6263 HYPERDISK_NAME = "test-hyperdisk-enc-" + UUID .randomUUID ();
6364 HYPERDISK_IN_POOL_NAME = "test-hyperdisk-enc-" + UUID .randomUUID ();
64- STORAGE_POOL_NAME = "test-storage-pool-enc-" + UUID .randomUUID ();
65+ STORAGE_POOL_NAME = "test-storage-pool-enc-" + javaVersion + "-"
66+ + UUID .randomUUID ().toString ().substring (0 , 8 );
6567
6668 Util .cleanUpExistingDisks ("test-hyperdisk-enc-" , PROJECT_ID , ZONE );
67- Util .cleanUpExistingStoragePool ("test-storage-pool-" , PROJECT_ID , ZONE );
68- Util .cleanUpExistingStoragePool ("test-storage-pool-" , PROJECT_ID , "us-central1-a" );
69- Util .cleanUpExistingStoragePool ("test-storage-pool-" , PROJECT_ID , "asia-south1-a" );
70-
69+ Util .cleanUpExistingStoragePool ("test-storage-pool-" + javaVersion , PROJECT_ID , ZONE );
7170 }
7271
7372 @ AfterAll
0 commit comments