Skip to content

Commit

Permalink
Refs #20165. Apply suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Sep 24, 2024
1 parent 5b5eaeb commit b548118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ void TypeLookupReplyListener::check_get_types_reply(
}
else
{
typelookup_manager_->notify_callbacks(RETCODE_NO_DATA, type_id);
EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER,
"Received reply with no types.");
register_result = RETCODE_ERROR;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_replyid)
tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws);

TypeLookup_Reply reply;
reply.header().relatedRequestId(valid_sampleidentity());
reply.return_value()._default();
ReplyWithServerGUID reply_with_guid;
reply_with_guid.reply = reply;
Expand All @@ -632,7 +633,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_wrong_replyid)
TEST_F(TypeLookupServiceTests, TypeLookupReplyListener_getTypes_empty)
{
MockLogConsumer* log_consumer =
setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Reply no contains any type.");
setup_expect_log_msg("TYPELOOKUP_SERVICE_REPLY_LISTENER", "Received reply with no types.");

TypeIdentfierWithSize tidws;
tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws);
Expand Down Expand Up @@ -852,7 +853,7 @@ TEST_F(TypeLookupServiceTests, TypeLookupRequestListener_getTypes_empty)
{
MockLogConsumer* log_consumer =
setup_expect_log_msg("TYPELOOKUP_SERVICE_REQUEST_LISTENER",
"Request no contains any type identifier.");
"Received request with no type identifiers.");

TypeIdentfierWithSize tidws;
tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws);
Expand Down

0 comments on commit b548118

Please sign in to comment.