DATAREDIS-463 - Prevent tests cleanup from failing.

Use more general Exception during tearDown to prevent tests from failing.
This commit is contained in:
Christoph Strobl
2016-02-17 17:16:03 +01:00
parent cc6bde665a
commit 30b06a9202

View File

@@ -58,7 +58,6 @@ import org.springframework.data.redis.test.util.RedisClusterRule;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.exceptions.JedisDataException;
/**
* @author Christoph Strobl
@@ -102,7 +101,7 @@ public class JedisClusterConnectionTests implements ClusterConnectionTests {
for (JedisPool pool : nativeConnection.getClusterNodes().values()) {
try {
pool.getResource().flushDB();
} catch (JedisDataException e) {
} catch (Exception e) {
// ignore this one since we cannot remove data from slaves
}
}