Skip to content

Commit da2fa90

Browse files
committed
return a list to not expose implementation details (deque)
1 parent a229b1b commit da2fa90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

launch_testing_ros/launch_testing_ros/wait_for_topics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def messages_received(self, topic_name):
9797
"""List of received messages of a specific topic."""
9898
if topic_name not in self.__ros_node.received_messages:
9999
raise KeyError("No message received with topic " + topic_name)
100-
return self.__ros_node.received_messages[topic_name]
100+
return list(self.__ros_node.received_messages[topic_name])
101101

102102
def __enter__(self):
103103
if not self.wait():

0 commit comments

Comments
 (0)