Skip to content

Commit 7d2e899

Browse files
mp911dechristophstrobl
authored andcommitted
DATAREDIS-1234 - Report Redis version 6.0.6+ in tests.
Original Pull Request: #570
1 parent 8e4f796 commit 7d2e899

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/org/springframework/data/redis/RedisTestProfileValueSource.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class RedisTestProfileValueSource implements ProfileValueSource {
4242
private static final String REDIS_32 = "3.2";
4343
private static final String REDIS_50 = "5.0";
4444
private static final String REDIS_60 = "6.0";
45+
private static final String REDIS_606 = "6.0.6";
4546
private static final String REDIS_VERSION_KEY = "redisVersion";
4647

4748
private static RedisTestProfileValueSource INSTANCE;
@@ -98,6 +99,10 @@ public String get(String key) {
9899
return System.getProperty(key);
99100
}
100101

102+
if (redisVersion.compareTo(RedisVersionUtils.parseVersion(REDIS_606)) >= 0) {
103+
return REDIS_606;
104+
}
105+
101106
if (redisVersion.compareTo(RedisVersionUtils.parseVersion(REDIS_60)) >= 0) {
102107
return REDIS_60;
103108
}

0 commit comments

Comments
 (0)