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 @@ -50,7 +50,7 @@ public abstract class Util {
5050 // resources
5151 // and delete the listed resources based on the timestamp.
5252
53- private static final int DELETION_THRESHOLD_TIME_HOURS = 24 ;
53+ private static final int DELETION_THRESHOLD_TIME_MINUTES = 24 ;
5454 // comma separate list of zone names
5555 private static final String TEST_ZONES_NAME = "JAVA_DOCS_COMPUTE_TEST_ZONES" ;
5656 private static final String DEFAULT_ZONES = "us-central1-a,us-west1-a,asia-south1-a" ;
@@ -125,7 +125,7 @@ && isCreatedBeforeThresholdTime(instance.getCreationTimestamp())) {
125125
126126 public static boolean isCreatedBeforeThresholdTime (String timestamp ) {
127127 return OffsetDateTime .parse (timestamp ).toInstant ()
128- .isBefore (Instant .now ().minus (DELETION_THRESHOLD_TIME_HOURS , ChronoUnit .HOURS ));
128+ .isBefore (Instant .now ().minus (DELETION_THRESHOLD_TIME_MINUTES , ChronoUnit .MINUTES ));
129129 }
130130
131131 public static String getBase64EncodedKey () {
You can’t perform that action at this time.
0 commit comments