Skip to content

Commit

Permalink
Cleanup network flow endpoints test. (#1094)
Browse files Browse the repository at this point in the history
So that we don't get warnings on unsupported RMW implementations.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Aug 22, 2023
1 parent 55cc2c7 commit 7c1b387
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
9 changes: 0 additions & 9 deletions rcl/src/rcl/network_flow_endpoints.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifdef __cplusplus
extern "C"
{
#endif

#include "rcl/error_handling.h"
#include "rcl/graph.h"
#include "rcl/network_flow_endpoints.h"
Expand Down Expand Up @@ -115,7 +110,3 @@ rcl_subscription_get_network_flow_endpoints(
}
return rcl_convert_rmw_ret_to_rcl_ret(rmw_ret);
}

#ifdef __cplusplus
}
#endif
10 changes: 6 additions & 4 deletions rcl/test/rcl/test_network_flow_endpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,11 @@ TEST_F(
strcmp_ret);
}
}
}

// Release resources
rcl_network_flow_endpoint_array_fini(&network_flow_endpoint_array_1);
rcl_network_flow_endpoint_array_fini(&network_flow_endpoint_array_2);
// Release resources
rcl_network_flow_endpoint_array_fini(&network_flow_endpoint_array_1);
rcl_network_flow_endpoint_array_fini(&network_flow_endpoint_array_2);
} else {
rcl_reset_error();
}
}

0 comments on commit 7c1b387

Please sign in to comment.