Skip to content

Commit fdf00b5

Browse files
authored
Merge branch 'master' into im/introduce-command-flags
2 parents 2a0ee21 + 4776709 commit fdf00b5

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
<dependency>
189189
<groupId>org.apache.httpcomponents.client5</groupId>
190190
<artifactId>httpclient5-fluent</artifactId>
191-
<version>5.5</version>
191+
<version>5.5.1</version>
192192
<scope>test</scope>
193193
</dependency>
194194

src/test/java/redis/clients/jedis/JedisPubSubBaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ protected String encode(byte[] raw) {
5555
});
5656
thread.start();
5757

58-
assertTrue(countDownLatch.await(10, TimeUnit.MILLISECONDS));
58+
assertTrue(countDownLatch.await(30, TimeUnit.MILLISECONDS));
5959
}
6060
}

src/test/java/redis/clients/jedis/mcf/StatusTrackerTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import static org.mockito.Mockito.*;
55
import static org.awaitility.Awaitility.await;
66

7+
import java.time.Duration;
78
import java.util.concurrent.CountDownLatch;
89
import java.util.concurrent.TimeUnit;
910
import java.util.concurrent.atomic.AtomicReference;
@@ -71,11 +72,9 @@ void testWaitForHealthStatus_EventDriven() throws InterruptedException {
7172
});
7273
waitingThread.start();
7374

74-
// Give some time for the listener to be registered
75-
Thread.sleep(50);
75+
await().atMost(Duration.ofMillis(100L)).pollInterval(Duration.ofMillis(5L)).untilAsserted(
76+
() -> assertNotNull(capturedListener[0], "Listener should have been registered"));
7677

77-
// Simulate health status change event
78-
assertNotNull(capturedListener[0], "Listener should have been registered");
7978
HealthStatusChangeEvent event = new HealthStatusChangeEvent(testEndpoint, HealthStatus.UNKNOWN,
8079
HealthStatus.HEALTHY);
8180
capturedListener[0].onStatusChange(event);

0 commit comments

Comments
 (0)