Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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