Skip to content

TestcontainersLifecycleBeanPostProcessor does not work correctly with scoped beans #35786

Closed
@eddumelendez

Description

@eddumelendez

I’ve been playing around with several examples using Spring Boot Testcontainers at Development time and last night I noticed those are not working as expected with @RestartScope. IIRC this example used to work in the past, download the image, start the container and so on. I also tried something similar to what’s mentioned in the docs but the image is not downloaded at all in this example if @ServiceConnection is removed. It works as expected without @RestartScope

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions