Skip to content

Commit

Permalink
fixup tests to match changes in launch and rclpy
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Mar 31, 2016
1 parent fb7215d commit 711b61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rclpy/test/test_select_rmw_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def func_import_each_available_rmw_implementation(rmw_implementation):
return ctypes.c_bool(True)
raise

set_rmw = rclpy.get_implementation_identifier()
set_rmw = rclpy.get_rmw_implementation_identifier()

assert set_rmw in identifiers_map, \
"expected identifier '{0}' to be in the map '{1}'".format(set_rmw, identifiers_map)
Expand Down Expand Up @@ -106,7 +106,7 @@ def func_select_rmw_implementation_by_environment(rmw_implementation):
.format(rmw_implementation), file=sys.stderr)
raise

set_rmw = rclpy.get_implementation_identifier()
set_rmw = rclpy.get_rmw_implementation_identifier()

assert set_rmw in identifiers_map, \
"expected identifier '{0}' to be in the map '{1}'".format(set_rmw, identifiers_map)
Expand Down
2 changes: 1 addition & 1 deletion rclpy/test/test_talker_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_talker_listener():
node.create_subscription(String, 'chatter', chatter_callback, qos_profile_default)

spin_count = 0
while len(received_messages) == 0 and spin_count < 10 and launcher.launch_is_running():
while len(received_messages) == 0 and spin_count < 10 and launcher.is_launch_running():
rclpy.spin_once(node) # This will wait 1 second or until something has been done.
spin_count += 1

Expand Down

0 comments on commit 711b61d

Please sign in to comment.