|
|
@ -45,8 +45,7 @@ class SampleCacheApplicationRedisTests {
|
|
|
|
|
|
|
|
|
|
|
|
@DynamicPropertySource
|
|
|
|
@DynamicPropertySource
|
|
|
|
static void redisProperties(DynamicPropertyRegistry properties) {
|
|
|
|
static void redisProperties(DynamicPropertyRegistry properties) {
|
|
|
|
properties.add("spring.data.redis.url",
|
|
|
|
properties.add("spring.data.redis.url", () -> "redis://" + redis.getHost() + ":" + redis.getFirstMappedPort());
|
|
|
|
() -> "redis://" + redis.getContainerIpAddress() + ":" + redis.getFirstMappedPort());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|