diff --git a/redisson/src/test/java/org/redisson/RedissonMapTest.java b/redisson/src/test/java/org/redisson/RedissonMapTest.java index 9699282e5..6db62557f 100644 --- a/redisson/src/test/java/org/redisson/RedissonMapTest.java +++ b/redisson/src/test/java/org/redisson/RedissonMapTest.java @@ -16,6 +16,7 @@ import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ExecutionException; import org.junit.Assert; +import org.junit.Assume; import org.junit.Test; import org.redisson.api.RFuture; import org.redisson.api.RMap; @@ -155,6 +156,7 @@ public class RedissonMapTest extends BaseTest { @Test public void testValueSize() { + Assume.assumeTrue(RedisRunner.getDefaultRedisServerInstance().getRedisVersion().compareTo("3.2.0") > 0); RMap map = redisson.getMap("getAll"); map.put("1", "1234"); assertThat(map.valueSize("4")).isZero();