mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Fix tests that fail when Redis is unavailable
This commit is contained in:
parent
7942d9f787
commit
8d08e816a7
@ -39,7 +39,7 @@ public class SampleRedisApplicationTests {
|
||||
try {
|
||||
SampleRedisApplication.main(new String[0]);
|
||||
}
|
||||
catch (IllegalStateException ex) {
|
||||
catch (Exception ex) {
|
||||
if (!redisServerRunning(ex)) {
|
||||
return;
|
||||
}
|
||||
|
@ -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.key-pattern: d
|
||||
spring.jmx.default-domain: org.springframework.boot
|
||||
spring.data.redis.repositories.enabled=false
|
Loading…
Reference in New Issue
Block a user