Skip to content

Commit

Permalink
check the buffer length
Browse files Browse the repository at this point in the history
Signed-off-by: Pintaudi Giorgio <[email protected]>
  • Loading branch information
LastStarDust committed Mar 13, 2023
1 parent 7c9e181 commit 8249e34
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def test_topics_successful(self, count):
assert wait_for_node_object_1.topics_received() == expected_topics
assert wait_for_node_object_1.topics_not_received() == set()
for topic_name, _ in topic_list:
assert len(wait_for_node_object_1.received_messages(topic_name)) >= 1
message = wait_for_node_object_1.received_messages(topic_name).pop().data
assert message_pattern.match(message)

Expand All @@ -79,6 +80,7 @@ def test_topics_successful(self, count):
assert wait_for_node_object_2.topics_received() == expected_topics
assert wait_for_node_object_2.topics_not_received() == set()
for topic_name, _ in topic_list:
assert len(wait_for_node_object_1.received_messages(topic_name)) >= 1
message = wait_for_node_object_2.received_messages(topic_name).pop().data
assert message_pattern.match(message)
wait_for_node_object_2.shutdown()
Expand Down

0 comments on commit 8249e34

Please sign in to comment.