diff --git a/zenoh-test-ros2dds/tests/action.rs b/zenoh-test-ros2dds/tests/action.rs index 9a5859b..c8af909 100644 --- a/zenoh-test-ros2dds/tests/action.rs +++ b/zenoh-test-ros2dds/tests/action.rs @@ -55,7 +55,7 @@ fn test_ros_client_zenoh_action() { let (sender, receiver) = std::sync::mpsc::channel(); - rt.spawn(async { + rt.spawn(async move { common::init_env(); // We send request 5 and expect result [0, 1, 1, 2, 3, 5] @@ -159,7 +159,7 @@ fn test_zenoh_client_ros_action() { let (sender, receiver) = std::sync::mpsc::channel(); - rt.spawn(async { + rt.spawn(async move { common::init_env(); // We send request 5 and expect result [0, 1, 1, 2, 3, 5]