Skip to content

Commit

Permalink
return a list to not expose implementation details (deque)
Browse files Browse the repository at this point in the history
  • Loading branch information
LastStarDust committed Feb 28, 2023
1 parent a229b1b commit da2fa90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launch_testing_ros/launch_testing_ros/wait_for_topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def messages_received(self, topic_name):
"""List of received messages of a specific topic."""
if topic_name not in self.__ros_node.received_messages:
raise KeyError("No message received with topic " + topic_name)
return self.__ros_node.received_messages[topic_name]
return list(self.__ros_node.received_messages[topic_name])

def __enter__(self):
if not self.wait():
Expand Down

0 comments on commit da2fa90

Please sign in to comment.