Commit 8d08e816 authored by Phillip Webb's avatar Phillip Webb

Fix tests that fail when Redis is unavailable

parent 7942d9f7
...@@ -39,7 +39,7 @@ public class SampleRedisApplicationTests { ...@@ -39,7 +39,7 @@ public class SampleRedisApplicationTests {
try { try {
SampleRedisApplication.main(new String[0]); SampleRedisApplication.main(new String[0]);
} }
catch (IllegalStateException ex) { catch (Exception ex) {
if (!redisServerRunning(ex)) { if (!redisServerRunning(ex)) {
return; return;
} }
......
...@@ -4,3 +4,4 @@ spring.metrics.export.redis.key: keys.metrics.sample ...@@ -4,3 +4,4 @@ spring.metrics.export.redis.key: keys.metrics.sample
spring.metrics.export.aggregate.prefix: ${random.value:0000}.${spring.application.name:application} spring.metrics.export.aggregate.prefix: ${random.value:0000}.${spring.application.name:application}
spring.metrics.export.aggregate.key-pattern: d spring.metrics.export.aggregate.key-pattern: d
spring.jmx.default-domain: org.springframework.boot spring.jmx.default-domain: org.springframework.boot
spring.data.redis.repositories.enabled=false
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment