Skip to content

Commit 074bdac

Browse files
committed
Don't store requests
This was only needed for the tests before the refactor. Signed-off-by: Jacob Perron <[email protected]>
1 parent 5d9dcf3 commit 074bdac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

launch_ros/launch_ros/actions/load_composable_nodes.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ def __init__(
7979
self.__target_container = target_container
8080
self.__final_target_container_name = None # type: Optional[Text]
8181
self.__logger = launch.logging.get_logger(__name__)
82-
# Useful for regression testing
83-
self.__load_node_requests = None
8482

8583
def _load_node(
8684
self,
@@ -172,14 +170,14 @@ def execute(
172170

173171
# Generate load requests before execute() exits to avoid race with context changing
174172
# due to scope change (e.g. if loading nodes from within a GroupAction).
175-
self.__load_node_requests = [
173+
load_node_requests = [
176174
get_composable_node_load_request(node_description, context)
177175
for node_description in self.__composable_node_descriptions
178176
]
179177

180178
context.add_completion_future(
181179
context.asyncio_loop.run_in_executor(
182-
None, self._load_in_sequence, self.__load_node_requests, context
180+
None, self._load_in_sequence, load_node_requests, context
183181
)
184182
)
185183

0 commit comments

Comments
 (0)