Skip to content

Commit 7d0f680

Browse files
Reverted unused changes
1 parent 2b0bdb0 commit 7d0f680

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

compute/cloud-client/src/main/java/compute/reservation/CreateReservation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static void createReservation(
107107

108108
// Wait for the create reservation operation to complete.
109109
Operation response =
110-
reservationsClient.insertAsync(projectId, zone, reservation).get(7, TimeUnit.MINUTES);
110+
reservationsClient.insertAsync(projectId, zone, reservation).get(5, TimeUnit.MINUTES);
111111

112112
if (response.hasError()) {
113113
System.out.println("Reservation creation failed!" + response);

compute/cloud-client/src/main/java/compute/reservation/DeleteReservation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static void deleteReservation(String projectId, String zone, String reser
5555
.build();
5656

5757
Operation response = reservationsClient.deleteAsync(
58-
deleteReservationRequest).get(7, TimeUnit.MINUTES);
58+
deleteReservationRequest).get(5, TimeUnit.MINUTES);
5959

6060
if (response.getStatus() == Operation.Status.DONE) {
6161
System.out.println("Deleted reservation: " + reservationName);

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

Lines changed: 1 addition & 1 deletion
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 = 25;
60+
private static final int DELETION_THRESHOLD_TIME_MINUTES = 45;
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";

compute/cloud-client/src/test/java/compute/disks/HyperdisksIT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public static void setUp()
6565

6666
Util.cleanUpExistingDisks("test-hyperdisk-enc-", PROJECT_ID, ZONE);
6767
Util.cleanUpExistingStoragePool("test-storage-pool-enc-", PROJECT_ID, ZONE);
68-
TimeUnit.MINUTES.sleep(2);
6968
}
7069

7170
@AfterAll

0 commit comments

Comments
 (0)