Spring boot 4 test with test-container, every test file(none rabbitmq related) would trigger rabbitmq connect on startup and disconnect on the end #3280
-
|
The rabbitmq is configured but not in the test Output in spring boot 3, test-project-link rabbitmq configuration: listener: test base class: test class: Sorry for my bad English |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
I believe this has nothing to do with Spring AMQP or RabbitMQ at all. Would you mind to investigate to that direction? Thanks |
Beta Was this translation helpful? Give feedback.
I believe this has nothing to do with Spring AMQP or RabbitMQ at all.
Looks like in Spring Boot 3.5.x, all the test classes use the same cached application context, while in Spring Boot 4.0.x they are no for some reason.
Might even the case that it even has nothing to do with Spring Boot, but just Spring Framework 6.5.x vs 7.0.x.
Would you mind to investigate to that direction?
I mean without AMQP stuff or even Spring Boot?
Thanks