diff --git a/Makefile b/Makefile index aa3fd8e71..3375d487d 100644 --- a/Makefile +++ b/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 ####### diff --git a/src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java b/src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java index 7e18db6f8..df58c2be3 100644 --- a/src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java +++ b/src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java @@ -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 diff --git a/src/test/java/org/springframework/data/redis/connection/lettuce/LettuceClusterConnectionTests.java b/src/test/java/org/springframework/data/redis/connection/lettuce/LettuceClusterConnectionTests.java index 754538189..7b375a1d8 100644 --- a/src/test/java/org/springframework/data/redis/connection/lettuce/LettuceClusterConnectionTests.java +++ b/src/test/java/org/springframework/data/redis/connection/lettuce/LettuceClusterConnectionTests.java @@ -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