diff --git a/trajectory_executor/CMakeLists.txt b/trajectory_executor/CMakeLists.txt index e00029aabf..446c3426ab 100644 --- a/trajectory_executor/CMakeLists.txt +++ b/trajectory_executor/CMakeLists.txt @@ -70,6 +70,14 @@ if(BUILD_TESTING) target_link_libraries(test_trajectory_executor ${node_lib} ) + + # Add test properties to run in isolation + set_tests_properties(test_trajectory_executor + PROPERTIES + ENVIRONMENT "ROS_DOMAIN_ID=${TEST_DOMAIN_ID_OFFSET}$" + TIMEOUT 120 # Optional: Set a timeout in seconds + RUN_SERIAL TRUE # Run this test in isolation + ) endif() # Install