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

Do not ignore default-initialized message fields #25

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

sergeuz
Copy link
Member

@sergeuz sergeuz commented Apr 29, 2020

This PR fixes an issue where Device.sendRequest() doesn't return message fields which are not own properties of the decoded response message object. This is typically the case when some fields of a response message are set to zero.

@sergeuz sergeuz added the bug label Apr 29, 2020
@sergeuz sergeuz requested a review from busticated April 29, 2020 19:02
Copy link
Contributor

@busticated busticated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should brainstorm on testing options / improvements going forward 👍

@sergeuz
Copy link
Member Author

sergeuz commented Apr 29, 2020

Yeah, apart from a few integration tests, this repo doesn't have a single test for protobuf encoding/decoding.

@sergeuz sergeuz merged commit adecf92 into master Apr 29, 2020
@sergeuz sergeuz deleted the fix/default_fields branch April 29, 2020 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants