We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MockChannel reuses transaction when rollback, which leaves wrong published messages in transaction.
// modify origin commit_or_rollback_can_be_called_multiple_times_after_a_single_select String thirdMsg = "third message"; channel.basicPublish("", queue, null, thirdMsg.getBytes()); assertThat(channel.basicGet(queue, true)).isNull(); channel.txRollback(); assertThat(channel.basicGet(queue, true)).isNull(); String fourthMsg = "fourth message"; channel.basicPublish("", queue, null, fourthMsg.getBytes()); assertThat(channel.basicGet(queue, true)).isNull(); channel.txCommit(); assertThat(channel.basicGet(queue, true).getBody()).isEqualTo(fourthMsg.getBytes());
The text was updated successfully, but these errors were encountered:
I raised a PR #134
Sorry, something went wrong.
In the future, don't bother opening an issue and a PR if you plan to propose a fix, the PR is sufficient (and very welcome, thank you again)
No branches or pull requests
MockChannel reuses transaction when rollback, which leaves wrong published messages in transaction.
The text was updated successfully, but these errors were encountered: