DATAREDIS-685 - Update test configuration to use Redis 4.0.1.

Alos alter ClusterConnectionTests to be more robust.
This commit is contained in:
Christoph Strobl
2017-08-31 12:47:54 +02:00
parent 38d9f340c3
commit 00add116e9
3 changed files with 10 additions and 6 deletions

View File

@@ -1724,9 +1724,11 @@ public class JedisClusterConnectionTests implements ClusterConnectionTests {
JedisConverters.toBytes("c"), JedisConverters.toBytes("d"))));
}
@Test // DATAREDIS-315
@Test // DATAREDIS-315, DATAREDIS-685
public void infoShouldCollectionInfoFromAllClusterNodes() {
assertThat(Double.valueOf(clusterConnection.info().size()), closeTo(245d, 35d));
Properties singleNodeInfo = clusterConnection.serverCommands().info(new RedisClusterNode("127.0.0.1", 7380));
assertThat(Double.valueOf(clusterConnection.serverCommands().info().size()), closeTo(singleNodeInfo.size() * 3, 12d));
}
@Test // DATAREDIS-315

View File

@@ -1729,9 +1729,11 @@ public class LettuceClusterConnectionTests implements ClusterConnectionTests {
LettuceConverters.toBytes("c"), LettuceConverters.toBytes("d"))));
}
@Test // DATAREDIS-315
@Test // DATAREDIS-315, DATAREDIS-685
public void infoShouldCollectionInfoFromAllClusterNodes() {
assertThat(Double.valueOf(clusterConnection.info().size()), closeTo(245d, 35d));
Properties singleNodeInfo = clusterConnection.serverCommands().info(new RedisClusterNode("127.0.0.1", 7380));
assertThat(Double.valueOf(clusterConnection.serverCommands().info().size()), closeTo(singleNodeInfo.size() * 3, 12d));
}
@Test // DATAREDIS-315