From 846340ad62bdb2850bf80ea87cb7e483eb5370c4 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Fri, 5 Aug 2022 14:32:39 -0700 Subject: [PATCH] Fix redis prefix in tests See gh-11574 --- .../java/smoketest/cache/SampleCacheApplicationRedisTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java index fee509dde11..58b4559b07e 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java @@ -45,7 +45,7 @@ class SampleCacheApplicationRedisTests { @DynamicPropertySource static void redisProperties(DynamicPropertyRegistry properties) { - properties.add("spring.redis.url", + properties.add("spring.data.redis.url", () -> "redis://" + redis.getContainerIpAddress() + ":" + redis.getFirstMappedPort()); }