Skip to content

Commit

Permalink
test: update spring configuration test
Browse files Browse the repository at this point in the history
  • Loading branch information
GangCheng committed Aug 18, 2023
1 parent 5e0fc65 commit 554a2e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ ReactiveCacheManager reactiveCacheManager = ReactiveCacheManagerBuilder.newCusto
cache:
enabled: true
type: inmemory
maxWaitingDuration: PT5S
```

* Using with spring auto-injection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void testProperties() {
ReactiveCacheSupportProperties.ReactiveCacheType.redis
);
Assertions.assertEquals(reactiveCacheSupportProperties.getMaxWaitingDuration(),
Duration.ofSeconds(3)
Duration.ofSeconds(5)
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/application-inmemory.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
reactive:
cache:
enabled: true
type: inmemory
type: inmemory
maxWaitingDuration: PT5S
11 changes: 1 addition & 10 deletions src/test/resources/application-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,4 @@ reactive:
cache:
enabled: true
type: redis
spring:
redis:
lettuce:
pool:
max-active: ${redis.pool.maxActive:100}
max-idle: ${redis.pool.maxIdle:10}
max-wait: ${redis.pool.maxWait:5000}
min-idle: ${redis.pool.minIdle:3}
time-between-eviction-runs: ${redis.pool.timeBetweenEviction:5000}
shutdown-timeout: PT30S
maxWaitingDuration: PT5S

0 comments on commit 554a2e9

Please sign in to comment.