From cfe98af15bbf6ee201e6b412d2addcb9e42aafe6 Mon Sep 17 00:00:00 2001 From: Peter Baughman Date: Mon, 21 Oct 2019 14:00:44 -0700 Subject: [PATCH] Remove ready_fn - will be replaced by ReadyToTest() (#184) Signed-off-by: Pete Baughman --- test/test_logging_long_messages.py | 6 +++--- test/test_logging_output_format.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_logging_long_messages.py b/test/test_logging_long_messages.py index 1bd7392d..efaacade 100644 --- a/test/test_logging_long_messages.py +++ b/test/test_logging_long_messages.py @@ -17,13 +17,13 @@ from launch import LaunchDescription from launch.actions import ExecuteProcess -from launch.actions import OpaqueFunction import launch_testing +import launch_testing.actions import launch_testing.asserts -def generate_test_description(ready_fn): +def generate_test_description(): launch_description = LaunchDescription() # Set the output format to a "verbose" format that is expected by the executable output os.environ['RCUTILS_CONSOLE_OUTPUT_FORMAT'] = \ @@ -37,7 +37,7 @@ def generate_test_description(ready_fn): )) launch_description.add_action( - OpaqueFunction(function=lambda context: ready_fn()) + launch_testing.actions.ReadyToTest() ) return launch_description, {'process_name': process_name} diff --git a/test/test_logging_output_format.py b/test/test_logging_output_format.py index e2355b39..59d1ae04 100644 --- a/test/test_logging_output_format.py +++ b/test/test_logging_output_format.py @@ -17,13 +17,13 @@ from launch import LaunchDescription from launch.actions import ExecuteProcess -from launch.actions import OpaqueFunction import launch_testing +import launch_testing.actions import launch_testing.asserts -def generate_test_description(ready_fn): +def generate_test_description(): processes_to_test = [] launch_description = LaunchDescription() @@ -71,7 +71,7 @@ def generate_test_description(ready_fn): processes_to_test.append(name) launch_description.add_action( - OpaqueFunction(function=lambda context: ready_fn()) + launch_testing.actions.ReadyToTest() ) return launch_description, {'processes_to_test': processes_to_test}