It is better to point everything to localhost and we just make sure
there is not redis running on port 1234 when renning the tests.
This commit is contained in:
@@ -155,7 +155,7 @@ public class ShardedJedisPoolTest extends Assert {
|
|||||||
// items on one shard
|
// items on one shard
|
||||||
// alter shard 1 and recreate pool
|
// alter shard 1 and recreate pool
|
||||||
pool.destroy();
|
pool.destroy();
|
||||||
shards.set(1, new JedisShardInfo("nohost", 1234));
|
shards.set(1, new JedisShardInfo("localhost", 1234));
|
||||||
pool = new ShardedJedisPool(redisConfig, shards);
|
pool = new ShardedJedisPool(redisConfig, shards);
|
||||||
jedis = pool.getResource();
|
jedis = pool.getResource();
|
||||||
Long actual = Long.valueOf(0);
|
Long actual = Long.valueOf(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user