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

Unit test for rule & codec & disconnect tcp & broker_tcp v5 #628

Merged
merged 19 commits into from
Jul 21, 2023
Merged

Conversation

OdyWayne
Copy link
Collaborator

@OdyWayne OdyWayne commented Jul 20, 2023

No description provided.

@OdyWayne OdyWayne requested review from wanghaEMQ, JaylinYu and xinyi-xs and removed request for wanghaEMQ and JaylinYu July 20, 2023 09:31
Copy link
Member

@JaylinYu JaylinYu left a comment

Choose a reason for hiding this comment

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

Great work

@@ -481,6 +481,8 @@ NNG_DECL void nng_mqtt_msg_set_unsubscribe_property(nng_msg *, property *);
NNG_DECL void nng_mqtt_msg_set_unsuback_return_codes(
nng_msg *, uint8_t *, uint32_t);
NNG_DECL uint8_t *nng_mqtt_msg_get_unsuback_return_codes(nng_msg *, uint32_t *);
NNG_DECL property *nng_mqtt_msg_get_unsuback_property(nng_msg *);
NNG_DECL void nng_mqtt_msg_set_unsuback_property(nng_msg *, property *);
Copy link
Member

Choose a reason for hiding this comment

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

missing before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

@@ -508,7 +509,7 @@ nni_mqtt_msg_set_unsubscribe_topics(
for (size_t i = 0; i < topic_count; i++) {
nni_mqtt_topic_array_set(
proto_data->payload.unsubscribe.topic_arr, i,
(const char *) topics[i].buf);
(const char *) topics[i].buf, topics[i].length);
Copy link
Member

Choose a reason for hiding this comment

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

previous bug?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think so. Length is an unused arg in unsub before, now it is fixed and works just like sub.

@JaylinYu JaylinYu merged commit 0b4530c into main Jul 21, 2023
10 of 16 checks passed
@JaylinYu JaylinYu deleted the herman/dev branch July 21, 2023 02:19
Copy link
Contributor

@xinyi-xs xinyi-xs left a comment

Choose a reason for hiding this comment

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

Good job!

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.

None yet

3 participants