Skip to content

Commit be9ee18

Browse files
Fixed time
1 parent bbbba28 commit be9ee18

File tree

1 file changed

+2
-2
lines changed
  • compute/cloud-client/src/test/java/compute

1 file changed

+2
-2
lines changed

compute/cloud-client/src/test/java/compute/Util.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)