spring-cloud / spring-cloud-stream

Framework for building Event-Driven Microservices
http://cloud.spring.io/spring-cloud-stream
Apache License 2.0
1.01k stars 614 forks source link

Test Binder does not work with Spring Boot 3.3.2 any more #2988

Closed kschlesselmann closed 3 months ago

kschlesselmann commented 3 months ago

After upgrading to Spring Boot 3.3.2 it seems that the OutputDestination does not yield any messages but null any more. If I go back to SB 3.3.1 everything is fine again.

Version of the framework

Additional context I found this question on SO which seems to address the same issue.

olegz commented 3 months ago

Can you please provide a small sample? We have tests that are currently running so I am a bit surprised

kschlesselmann commented 3 months ago

@olegz Of course: https://github.com/kschlesselmann/spring-cloud-stream-2988

Just change the SB version to 3.3.1 to make the test pass.

olegz commented 3 months ago

Wondering if it is Kotlin specific. Just tried it with Java and all is good

olegz commented 3 months ago

Ok, figured it out. there was a change in SI to address flux subscriptions - https://github.com/spring-cloud/spring-cloud-stream/commit/3b5bb2e0d9a89c3b9ae9152c99268460ca7ed442 . But it was pushed after the release, so you need to upgrade s-cloud to 2023.0.4-SNAPSHOT or manually upgrade s-c-stream to a 4.1.4-SNAPSHOT