Fix tests that fail when Redis is unavailable

This commit is contained in:
Phillip Webb
2016-03-21 22:52:45 -07:00
parent 7942d9f787
commit 8d08e816a7
2 changed files with 2 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ public class SampleRedisApplicationTests {
try {
SampleRedisApplication.main(new String[0]);
}
catch (IllegalStateException ex) {
catch (Exception ex) {
if (!redisServerRunning(ex)) {
return;
}