Skip to content

Commit

Permalink
* MDF [CI/UT] fix a buggy UT.
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <[email protected]>
  • Loading branch information
JaylinYu committed Jan 27, 2025
1 parent a01776c commit 1e68945
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions tests/trantest.h
Original file line number Diff line number Diff line change
Expand Up @@ -479,36 +479,19 @@ send_callback(nng_mqtt_client *client, nng_msg *msg, void *arg)
return;
switch (nng_mqtt_msg_get_packet_type(msg)) {
case NNG_MQTT_CONNACK:
// printf("connack!\n");
break;
case NNG_MQTT_SUBACK:
// code = (reason_code *) nng_mqtt_msg_get_suback_return_codes(
// msg, &count);
// printf("SUBACK reason codes are\n");
// for (int i = 0; i < count; ++i)
// printf("%d ", code[i]);
// printf("\n");
break;
case NNG_MQTT_UNSUBACK:
// code = (reason_code *)
// nng_mqtt_msg_get_unsuback_return_codes(
// msg, &count);
// printf("UNSUBACK reason codes are\n");
// for (int i = 0; i < count; ++i)
// printf("%d ", code[i]);
// printf("\n");
nng_msg_free(msg);
break;
case NNG_MQTT_PUBACK:
// printf("PUBACK\n");
nng_msg_free(msg);
break;
default:
// printf("Sending in async way is done.\n");
// printf("default\n");
break;
}
// printf("aio mqtt result %d \n", nng_aio_result(aio));
// printf("suback %d \n", *code);
nng_msg_free(msg);
}

// Connect to the given address.
Expand Down

0 comments on commit 1e68945

Please sign in to comment.