mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-03 07:49:03 +00:00
Merge pull request #32131 from thegeekyasian
* pr/32131: Adapt deprecated getIpAddress call with getHost in Redis Tests Closes gh-32131
This commit is contained in:
+1
-2
@@ -45,8 +45,7 @@ class SampleCacheApplicationRedisTests {
|
||||
|
||||
@DynamicPropertySource
|
||||
static void redisProperties(DynamicPropertyRegistry properties) {
|
||||
properties.add("spring.redis.url",
|
||||
() -> "redis://" + redis.getContainerIpAddress() + ":" + redis.getFirstMappedPort());
|
||||
properties.add("spring.redis.url", () -> "redis://" + redis.getHost() + ":" + redis.getFirstMappedPort());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user