mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 18:29:03 +00:00
Fix tests that fail when Redis is unavailable
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ public class SampleRedisApplicationTests {
|
||||
try {
|
||||
SampleRedisApplication.main(new String[0]);
|
||||
}
|
||||
catch (IllegalStateException ex) {
|
||||
catch (Exception ex) {
|
||||
if (!redisServerRunning(ex)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user