-
Notifications
You must be signed in to change notification settings - Fork 222
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
returning the error when doing a nack in the message #968
Conversation
/assign @duglin |
Seems reasonable. Is there a test we can add for this? |
rebase is needed |
done @duglin, thanks for the review, PTAL |
Is it possible to test that the error makes its way back to the logger? |
but not sure how to do that here in the tests, do you have a tests that setup the pubsub? sorry for asking that, i am too new to this codebase |
I looked around and I didn't see a good example of us testing that yet so perhaps I'm asking too much. |
Are you asking for the caller here, i.e., integration tests? |
Yea, I guess an integration test since the testcase added (while valid) is kind of silly/trivial since it's basically just testing one if-statement, and the real point of this PR was to ensure that the error bubbled up to the proper spot (like the logger). So, in essence not just test the if-statement but also the Finish() logic in conjunction with our logging system. But if we don't have an existing test that can be easily hooked-into I'm not sure it's fair to ask @cpanato to add one just for this trivial PR. |
maybe we can open an issue for that, I think that will require some more complex things to setup |
Signed-off-by: cpanato <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes: #831
other protocol return the error, doing similar thing here as well