Skip to content

Commit 30b06a9

Browse files
DATAREDIS-463 - Prevent tests cleanup from failing.
Use more general Exception during tearDown to prevent tests from failing.
1 parent cc6bde6 commit 30b06a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
import redis.clients.jedis.HostAndPort;
5959
import redis.clients.jedis.JedisCluster;
6060
import redis.clients.jedis.JedisPool;
61-
import redis.clients.jedis.exceptions.JedisDataException;
6261

6362
/**
6463
* @author Christoph Strobl
@@ -102,7 +101,7 @@ public void tearDown() throws IOException {
102101
for (JedisPool pool : nativeConnection.getClusterNodes().values()) {
103102
try {
104103
pool.getResource().flushDB();
105-
} catch (JedisDataException e) {
104+
} catch (Exception e) {
106105
// ignore this one since we cannot remove data from slaves
107106
}
108107
}

0 commit comments

Comments
 (0)