DATAREDIS-685 - Update test configuration to use Redis 4.0.1.
Alos alter ClusterConnectionTests to be more robust.
This commit is contained in:
4
Makefile
4
Makefile
@@ -1,4 +1,4 @@
|
||||
# Copyright 2011-2014 the original author or authors.
|
||||
# Copyright 2011-2017 the original author or authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
REDIS_VERSION:=3.2.6
|
||||
REDIS_VERSION:=4.0.1
|
||||
SPRING_PROFILE?=ci
|
||||
|
||||
#######
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user