File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compute/cloud-client/src/test/java/compute Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public abstract class Util {
4949 // resources
5050 // and delete the listed resources based on the timestamp.
5151
52- private static final int DELETION_THRESHOLD_TIME_MINUTES = 30 ;
52+ private static final int DELETION_THRESHOLD_TIME_HOURS = 24 ;
5353 // comma separate list of zone names
5454 private static final String TEST_ZONES_NAME = "JAVA_DOCS_COMPUTE_TEST_ZONES" ;
5555 private static final String DEFAULT_ZONES = "us-central1-a,us-west1-a,asia-south1-a" ;
@@ -118,7 +118,7 @@ && isCreatedBeforeThresholdTime(instance.getCreationTimestamp())) {
118118
119119 public static boolean isCreatedBeforeThresholdTime (String timestamp ) {
120120 return OffsetDateTime .parse (timestamp ).toInstant ()
121- .isBefore (Instant .now ().minus (DELETION_THRESHOLD_TIME_MINUTES , ChronoUnit .MINUTES ));
121+ .isBefore (Instant .now ().minus (DELETION_THRESHOLD_TIME_HOURS , ChronoUnit .HOURS ));
122122 }
123123
124124 public static String getBase64EncodedKey () {
You can’t perform that action at this time.
0 commit comments