Browse Source

Merge pull request #32131 from thegeekyasian

* pr/32131:
  Adapt deprecated getIpAddress call with getHost in Redis Tests

Closes gh-32131
pull/32861/head
Stephane Nicoll 4 years ago
parent
commit
392aec4a78
  1. 3
      spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java

3
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java vendored

@ -45,8 +45,7 @@ class SampleCacheApplicationRedisTests { @@ -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…
Cancel
Save