Skip to content

Commit 3c73582

Browse files
committed
fixed unit tests
1 parent 8f223a7 commit 3c73582

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/java/com/redislabs/testcontainers/TestRedisClusterWithKeyspaceNotificationsContainer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ void emitsKeyspaceNotifications() throws InterruptedException {
4848
pubSubConnection.addListener(new PubSubListener(messages));
4949
pubSubConnection.setNodeMessagePropagation(true);
5050
pubSubConnection.sync().upstream().commands().psubscribe("__keyspace@0__:*");
51+
Thread.sleep(10);
5152
connection.sync().set("key1", "value");
5253
connection.sync().set("key2", "value");
5354
Thread.sleep(10);

src/test/java/com/redislabs/testcontainers/TestRedisStandaloneWithKeyspaceNotificationsContainer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ void emitsKeyspaceNotifications() throws InterruptedException {
4545
List<String> messages = new ArrayList<>();
4646
pubSubConnection.addListener(new PubSubListener(messages));
4747
pubSubConnection.sync().psubscribe("__keyspace@0__:*");
48+
Thread.sleep(10);
4849
connection.sync().set("key1", "value");
4950
connection.sync().set("key2", "value");
5051
Thread.sleep(10);

0 commit comments

Comments
 (0)