Skip to content

InputDestination.send is sending more than 1 message in version 5.0.0 #3168

@jenthomas88

Description

@jenthomas88

Describe the issue
We are migrating our microservices from Spring boot 3 to Spring boot 4 (and so Spring cloud 2025.1.0). This migration is making several of our integration tests fail and all relevant tests contain InputDestination.send
We were able to isolate the problem in the attached demo project

To Reproduce
You need at least 2 test classes with inputDestination.send in the same test execution
Just do a gradle test on the attached demo project
You will see that the 1st class to execute is ok but the second will send 2 messages instead of 1 (and the 3rd class to execute will send 3...)

Version of the framework
Spring boot 4.0.1
Spring cloud 2025.1.0
Spring cloud stream 5.0.0
Spring cloud stream test binder 5.0.0

Demo project
demo.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions