Skip to content

Commit

Permalink
remove a few exception cases from test_lifecycle.py.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Jul 23, 2024
1 parent 17113ca commit 2b1611e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions rclpy/test/test_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import rclpy
from rclpy.executors import SingleThreadedExecutor
from rclpy.impl.implementation_singleton import rclpy_implementation as _rclpy
from rclpy.lifecycle import LifecycleNode
from rclpy.lifecycle import TransitionCallbackReturn
from rclpy.node import Node
Expand Down Expand Up @@ -69,13 +68,7 @@ def test_lifecycle_state_transitions():
assert node.trigger_deactivate() == TransitionCallbackReturn.SUCCESS
assert node.trigger_cleanup() == TransitionCallbackReturn.SUCCESS
# some that are not possible from the current state
with pytest.raises(_rclpy.RCLError):
node.trigger_activate()
with pytest.raises(_rclpy.RCLError):
node.trigger_deactivate()
assert node.trigger_shutdown() == TransitionCallbackReturn.SUCCESS
with pytest.raises(_rclpy.RCLError):
node.trigger_shutdown()
node.destroy_node()
# Again but trigger shutdown from 'inactive' instead of 'unconfigured'
node = LifecycleNode(
Expand Down

0 comments on commit 2b1611e

Please sign in to comment.