From 0f4ee74f1e38f84c701496065fe9df24f2c70bde Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Mon, 17 Feb 2020 11:04:38 -0300 Subject: [PATCH] Update rmw_topic_endpoint_info_array usage Signed-off-by: Ivan Santiago Paunovic --- rcl/test/rcl/test_info_by_topic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcl/test/rcl/test_info_by_topic.cpp b/rcl/test/rcl/test_info_by_topic.cpp index 0c66d5e0f..395bd2190 100644 --- a/rcl/test/rcl/test_info_by_topic.cpp +++ b/rcl/test/rcl/test_info_by_topic.cpp @@ -366,7 +366,7 @@ TEST_F( &this->node, &allocator, fqdn.c_str(), false, &topic_endpoint_info_array_pub); EXPECT_EQ(ret, RCL_RET_OK) << rcl_get_error_string().str; - EXPECT_EQ(topic_endpoint_info_array_pub.count, 1u) << "Expected one publisher"; + EXPECT_EQ(topic_endpoint_info_array_pub.size, 1u) << "Expected one publisher"; rmw_topic_endpoint_info_t topic_endpoint_info_pub = topic_endpoint_info_array_pub.info_array[0]; EXPECT_STREQ(topic_endpoint_info_pub.node_name, this->test_graph_node_name); EXPECT_STREQ(topic_endpoint_info_pub.node_namespace, "/"); @@ -379,7 +379,7 @@ TEST_F( &this->node, &allocator, fqdn.c_str(), false, &topic_endpoint_info_array_sub); EXPECT_EQ(ret, RCL_RET_OK) << rcl_get_error_string().str; - EXPECT_EQ(topic_endpoint_info_array_sub.count, 1u) << "Expected one subscription"; + EXPECT_EQ(topic_endpoint_info_array_sub.size, 1u) << "Expected one subscription"; rmw_topic_endpoint_info_t topic_endpoint_info_sub = topic_endpoint_info_array_sub.info_array[0]; EXPECT_STREQ(topic_endpoint_info_sub.node_name, this->test_graph_node_name); EXPECT_STREQ(topic_endpoint_info_sub.node_namespace, "/");