Skip to content

Commit

Permalink
Changed conditionDetails and removed declared maxTime
Browse files Browse the repository at this point in the history
  • Loading branch information
chiacyu committed Apr 12, 2024
1 parent 9b2c8ab commit 1de9008
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void testAssignmentAggregation() throws InterruptedException {
time.sleep(100);
manager.wakeup();
return readyToAssert.await(1, TimeUnit.MILLISECONDS);
}, 1000, "Wait for ready to assert.");
}, "Timed out waiting for AssignReplicasToDirsRequest to be sent.");

ArgumentCaptor<AssignReplicasToDirsRequest.Builder> captor =
ArgumentCaptor.forClass(AssignReplicasToDirsRequest.Builder.class);
Expand Down Expand Up @@ -249,7 +249,7 @@ void testRequeuesFailedAssignmentPropagations() throws InterruptedException {
time.sleep(TimeUnit.SECONDS.toMillis(1));
manager.wakeup();
return readyToAssert.await(1, TimeUnit.MILLISECONDS);
}, 10000, "Wait for ready to assert.");
}, "Timed out waiting for AssignReplicasToDirsRequest to be sent.");

ArgumentCaptor<AssignReplicasToDirsRequest.Builder> captor =
ArgumentCaptor.forClass(AssignReplicasToDirsRequest.Builder.class);
Expand Down Expand Up @@ -301,7 +301,7 @@ void testOnCompletion() throws Exception {
time.sleep(TimeUnit.SECONDS.toMillis(1));
manager.wakeup();
return readyToAssert.await(1, TimeUnit.MILLISECONDS);
}, 10000, "Wait for ready to assert");
}, "Timed out waiting for AssignReplicasToDirsRequest to be sent.");
}

private static ClientResponse buildSuccessfulResponse(AssignReplicasToDirsRequestData request) {
Expand Down Expand Up @@ -391,7 +391,7 @@ void testQueuedReplicaToDirAssignmentsMetric() throws Exception {
TestUtils.waitForCondition(() -> {
time.sleep(100);
return readyToAssert.await(1, TimeUnit.MILLISECONDS);
}, 1000, "Wait for ready to assert");
}, "Timed out waiting for AssignReplicasToDirsRequest to be sent.");
assertEquals(4, queuedReplicaToDirAssignments.value());

for (int i = 4; i < 8; i++) {
Expand Down

0 comments on commit 1de9008

Please sign in to comment.