fix redis counter test error

This commit is contained in:
zhouhao
2018-01-23 13:13:48 +08:00
parent e0395a166e
commit a85de4124d

View File

@@ -1,13 +1,10 @@
package org.hswebframework.web.counter.redis;
import org.hswebframework.web.concurrent.counter.Counter;
import org.hswebframework.web.concurrent.counter.CounterManager;
import org.junit.Assert;
import org.redisson.Redisson;
import org.redisson.config.Config;
import static org.junit.Assert.*;
/**
* TODO 完成注释
*
@@ -18,7 +15,7 @@ public class RedissonCounterTest {
public static void main(String[] args) throws InterruptedException {
Config config = new Config();
// config.setUseLinuxNativeEpoll(true);
config.useSingleServer().setAddress("127.0.0.1:6379");
config.useSingleServer().setAddress("redis://127.0.0.1:6379");
Redisson redisson = (Redisson) Redisson.create(config);
CounterManager counterManager = new RedissonCounterManager(redisson);