Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
8d08e816
Commit
8d08e816
authored
Mar 22, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests that fail when Redis is unavailable
parent
7942d9f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
SampleRedisApplicationTests.java
...t/java/sample/data/redis/SampleRedisApplicationTests.java
+1
-1
application.properties
...e-metrics-redis/src/main/resources/application.properties
+1
-0
No files found.
spring-boot-samples/spring-boot-sample-data-redis/src/test/java/sample/data/redis/SampleRedisApplicationTests.java
View file @
8d08e816
...
@@ -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
(
IllegalState
Exception
ex
)
{
catch
(
Exception
ex
)
{
if
(!
redisServerRunning
(
ex
))
{
if
(!
redisServerRunning
(
ex
))
{
return
;
return
;
}
}
...
...
spring-boot-samples/spring-boot-sample-metrics-redis/src/main/resources/application.properties
View file @
8d08e816
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment