Skip to content

Commit 2563332

Browse files
authored
Update rmw_topic_endpoint_info_array usage (#576)
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 87167e3 commit 2563332

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rcl/test/rcl/test_info_by_topic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ TEST_F(
371371
&this->node, &allocator, fqdn.c_str(), false,
372372
&topic_endpoint_info_array_pub);
373373
EXPECT_EQ(ret, RCL_RET_OK) << rcl_get_error_string().str;
374-
EXPECT_EQ(topic_endpoint_info_array_pub.count, 1u) << "Expected one publisher";
374+
EXPECT_EQ(topic_endpoint_info_array_pub.size, 1u) << "Expected one publisher";
375375
rmw_topic_endpoint_info_t topic_endpoint_info_pub = topic_endpoint_info_array_pub.info_array[0];
376376
EXPECT_STREQ(topic_endpoint_info_pub.node_name, this->test_graph_node_name);
377377
EXPECT_STREQ(topic_endpoint_info_pub.node_namespace, "/");
@@ -384,7 +384,7 @@ TEST_F(
384384
&this->node, &allocator, fqdn.c_str(), false,
385385
&topic_endpoint_info_array_sub);
386386
EXPECT_EQ(ret, RCL_RET_OK) << rcl_get_error_string().str;
387-
EXPECT_EQ(topic_endpoint_info_array_sub.count, 1u) << "Expected one subscription";
387+
EXPECT_EQ(topic_endpoint_info_array_sub.size, 1u) << "Expected one subscription";
388388
rmw_topic_endpoint_info_t topic_endpoint_info_sub = topic_endpoint_info_array_sub.info_array[0];
389389
EXPECT_STREQ(topic_endpoint_info_sub.node_name, this->test_graph_node_name);
390390
EXPECT_STREQ(topic_endpoint_info_sub.node_namespace, "/");

0 commit comments

Comments
 (0)