Skip to content

Commit

Permalink
fix cid ut
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzeroz committed Nov 27, 2024
1 parent 96b169a commit 14a50e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions plugins/mqtt/mqtt_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ int mqtt_config_parse(neu_plugin_t *plugin, const char *setting,
free(key.v.val_str);
free(keypass.v.val_str);
free(upload_drv_state_topic.v.val_str);
free(driver_action_req_topic.v.val_str);
free(driver_action_resp_topic.v.val_str);
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ut/cid_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ TEST(cid_to_msg, cid)
neu_cid_free(&cid);

EXPECT_STREQ(cmd.driver, "driver");
EXPECT_EQ(cmd.n_group, 12);
EXPECT_EQ(cmd.n_group, 11);

for (int i = 0; i < cmd.n_group; i++) {
for (int j = 0; j < cmd.groups[i].n_tag; j++) {
Expand Down

0 comments on commit 14a50e7

Please sign in to comment.