mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Adapt deprecated getIpAddress call with getHost in Redis Tests
Closes gh-32147
This commit is contained in:
parent
463766fd44
commit
50c099334b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user