Skip to content

Commit f0b2fbf

Browse files
Fixed time to delete
1 parent 66bbb50 commit f0b2fbf

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
@@ -57,7 +57,7 @@ public abstract class Util {
5757
// resources
5858
// and delete the listed resources based on the timestamp.
5959

60-
private static final int DELETION_THRESHOLD_TIME_MINUTES = 30;
60+
private static final int DELETION_THRESHOLD_TIME_HOURS = 1;
6161
// comma separate list of zone names
6262
private static final String TEST_ZONES_NAME = "JAVA_DOCS_COMPUTE_TEST_ZONES";
6363
private static final String DEFAULT_ZONES = "us-central1-a,us-west1-a,asia-south1-a";
@@ -126,7 +126,7 @@ && isCreatedBeforeThresholdTime(instance.getCreationTimestamp())) {
126126

127127
public static boolean isCreatedBeforeThresholdTime(String timestamp) {
128128
return OffsetDateTime.parse(timestamp).toInstant()
129-
.isBefore(Instant.now().minus(DELETION_THRESHOLD_TIME_MINUTES, ChronoUnit.MINUTES));
129+
.isBefore(Instant.now().minus(DELETION_THRESHOLD_TIME_HOURS, ChronoUnit.MINUTES));
130130
}
131131

132132
public static String getBase64EncodedKey() {

0 commit comments

Comments
 (0)