Skip to content
New issue

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

Proper mock expectations in SyncProducer.SendMessages #1035

Merged

Conversation

adamliesko
Copy link

Fixing incorrect expectations checking for the SyncProducer mock
in SendMessages call.

  1. SendMessages now checks the CheckFunction on each and
    every single message/expectation. It's consistent with singular
    SendMessage mocked implementation.

  2. SendMessages now correctly copies the right size of expectations
    to use when matching with produced messages. Fixes off by one error.

Fixing incorrect expectations checking for the SyncProducer mock
in SendMessages call.

1) SendMessages now checks the CheckFunction on each and
every single message/expectation. It's consistent with singular
SendMessage mocked implementation.

2) SendMessages now correctly copies the right size of expectations
to use when matching with produced messages. Fixes off by one error.
@adamliesko
Copy link
Author

seems like it fixes #776

@eapache
Copy link
Contributor

eapache commented Feb 6, 2018

Looks great, thanks!

@eapache eapache merged commit 541689b into IBM:master Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants