Skip to content

Commit 3ac25ce

Browse files
authored
Enable test isolation on a few remaining ros2topic tests (#1087)
These weren't caught in the first round because they execute based on the runtime-configured RMW implementation, where the others fan out to all available implementations. Signed-off-by: Scott K Logan <[email protected]>
1 parent c6b48f5 commit 3ac25ce

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ros2topic/test/test_bw_delay_hz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import launch_testing.asserts
2727
import launch_testing.markers
2828
import launch_testing.tools
29+
from launch_testing_ros.actions import EnableRmwIsolation
2930
import launch_testing_ros.tools
3031

3132
import pytest
@@ -61,6 +62,7 @@ def generate_test_description():
6162
cmd=['ros2', 'daemon', 'stop'],
6263
name='daemon-stop',
6364
on_exit=[
65+
EnableRmwIsolation(),
6466
ExecuteProcess(
6567
cmd=['ros2', 'daemon', 'start'],
6668
name='daemon-start',

ros2topic/test/test_echo_pub.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import launch_testing.asserts
2727
import launch_testing.markers
2828
import launch_testing.tools
29+
from launch_testing_ros.actions import EnableRmwIsolation
2930
import launch_testing_ros.tools
3031

3132
import pytest
@@ -65,6 +66,7 @@ def generate_test_description():
6566
cmd=['ros2', 'daemon', 'stop'],
6667
name='daemon-stop',
6768
on_exit=[
69+
EnableRmwIsolation(),
6870
ExecuteProcess(
6971
cmd=['ros2', 'daemon', 'start'],
7072
name='daemon-start',

ros2topic/test/test_use_sim_time.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import launch_testing.asserts
2727
import launch_testing.markers
2828
import launch_testing.tools
29+
from launch_testing_ros.actions import EnableRmwIsolation
2930
import launch_testing_ros.tools
3031

3132
import pytest
@@ -59,6 +60,7 @@ def generate_test_description():
5960
cmd=['ros2', 'daemon', 'stop'],
6061
name='daemon-stop',
6162
on_exit=[
63+
EnableRmwIsolation(),
6264
ExecuteProcess(
6365
cmd=['ros2', 'daemon', 'start'],
6466
name='daemon-start',

0 commit comments

Comments
 (0)