Skip to content

Commit

Permalink
Remove ready_fn - will be replaced by ReadyToTest() (#184)
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Baughman <pete.baughman@apex.ai>
  • Loading branch information
pbaughman authored and sloretz committed Oct 21, 2019
1 parent 3daf126 commit cfe98af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/test_logging_long_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = \
Expand All @@ -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}

Expand Down
6 changes: 3 additions & 3 deletions test/test_logging_output_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit cfe98af

Please sign in to comment.