File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
compute/cloud-client/src/test/java/compute Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public class SnippetsIT {
5858
5959 private static final String PROJECT_ID = System .getenv ("GOOGLE_CLOUD_PROJECT" );
6060 private static final String TEST_IMAGE_PROJECT_NAME = "JAVA_DOCS_COMPUTE_TEST_IMAGE_PROJECT" ;
61- private static final String ZONE = "asia-south1 -a" ;
61+ private static final String ZONE = "us-central1 -a" ;
6262 private static String MACHINE_NAME ;
6363 private static String MACHINE_NAME_LIST_INSTANCE ;
6464 private static String MACHINE_NAME_WAIT_FOR_OP ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public abstract class Util {
5353 // resources
5454 // and delete the listed resources based on the timestamp.
5555
56- private static final int DELETION_THRESHOLD_TIME_HOURS = 5 ;
56+ private static final int DELETION_THRESHOLD_TIME_HOURS = 24 ;
5757 // comma separate list of zone names
5858 private static final String TEST_ZONES_NAME = "JAVA_DOCS_COMPUTE_TEST_ZONES" ;
5959 private static final String DEFAULT_ZONES = "us-central1-a,us-west1-a,asia-south1-a" ;
@@ -116,7 +116,7 @@ && isCreatedBeforeThresholdTime(instance.getCreationTimestamp())
116116
117117 public static boolean isCreatedBeforeThresholdTime (String timestamp ) {
118118 return OffsetDateTime .parse (timestamp ).toInstant ()
119- .isBefore (Instant .now ().minus (DELETION_THRESHOLD_TIME_HOURS , ChronoUnit .MINUTES ));
119+ .isBefore (Instant .now ().minus (DELETION_THRESHOLD_TIME_HOURS , ChronoUnit .HOURS ));
120120 }
121121
122122 public static AggregatedListPagedResponse listFilteredInstances (String project ,
Original file line number Diff line number Diff line change 6464public class ReservationIT {
6565
6666 private static final String PROJECT_ID = System .getenv ("GOOGLE_CLOUD_PROJECT" );
67- private static final String ZONE = "asia-south1 -a" ;
67+ private static final String ZONE = "us-central1 -a" ;
6868 private static ReservationsClient reservationsClient ;
6969 private static InstancesClient instancesClient ;
7070 private static String RESERVATION_NAME ;
You can’t perform that action at this time.
0 commit comments