Merge pull request #653 from jackygurui/patch-3

Check redis version before testValueSize
pull/660/head
Nikita Koksharov 8 years ago committed by GitHub
commit 534c8a8d68

@ -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<String, String> map = redisson.getMap("getAll");
map.put("1", "1234");
assertThat(map.valueSize("4")).isZero();

Loading…
Cancel
Save