Browse Source

Fix TestSampleSessionRedisApplication

Update the `@ServiceConnection` annotation to include the
service connection name.

See gh-35168
pull/35165/head
Phillip Webb 3 years ago
parent
commit
eabce52b93
  1. 2
      spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session-redis/src/test/java/smoketest/session/redis/TestSampleSessionRedisApplication.java

2
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; @@ -26,7 +26,7 @@ import org.springframework.context.annotation.Bean;
public class TestSampleSessionRedisApplication {
@Bean
@ServiceConnection
@ServiceConnection("redis")
RedisContainer redisContainer() {
return new RedisContainer();
}

Loading…
Cancel
Save