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:
Jonathan Leibiusky
2014-02-17 18:01:19 -05:00
parent 8ac9bd612c
commit b7d551149a

View File

@@ -155,7 +155,7 @@ public class ShardedJedisPoolTest extends Assert {
// items on one shard
// alter shard 1 and recreate pool
pool.destroy();
shards.set(1, new JedisShardInfo("nohost", 1234));
shards.set(1, new JedisShardInfo("localhost", 1234));
pool = new ShardedJedisPool(redisConfig, shards);
jedis = pool.getResource();
Long actual = Long.valueOf(0);