Skip to content

Commit

Permalink
Use a set to compare the joint names
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Jul 26, 2024
1 parent 558d8a6 commit bbcc169
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ def check_if_js_published(topic, joint_names):
msgs = wait_for_topics.received_messages(topic)
msg = msgs[0]
assert len(msg.name) == len(joint_names), "Wrong number of joints in message"
assert msg.name == joint_names, "Wrong joint names"
# use a set to compare the joint names, as the order might be different
assert set(msg.name) == set(joint_names), "Wrong joint names"
wait_for_topics.shutdown()

0 comments on commit bbcc169

Please sign in to comment.