From eabce52b93037b72fade567475a316ee858f30e4 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 1 May 2023 22:06:43 -0700 Subject: [PATCH] Fix TestSampleSessionRedisApplication Update the `@ServiceConnection` annotation to include the service connection name. See gh-35168 --- .../session/redis/TestSampleSessionRedisApplication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session-redis/src/test/java/smoketest/session/redis/TestSampleSessionRedisApplication.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session-redis/src/test/java/smoketest/session/redis/TestSampleSessionRedisApplication.java index d321d24a19..6c65ec610e 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session-redis/src/test/java/smoketest/session/redis/TestSampleSessionRedisApplication.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session-redis/src/test/java/smoketest/session/redis/TestSampleSessionRedisApplication.java @@ -26,7 +26,7 @@ import org.springframework.context.annotation.Bean; public class TestSampleSessionRedisApplication { @Bean - @ServiceConnection + @ServiceConnection("redis") RedisContainer redisContainer() { return new RedisContainer(); }