Adapt deprecated getIpAddress call with getHost in Redis Tests

See gh-32131
This commit is contained in:
thegeekyasian 2022-08-22 13:17:17 +04:00 committed by Stephane Nicoll
parent a6350b5992
commit 5b1c6381db

View File

@ -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