Skip to content

Commit 1119e34

Browse files
committed
Slight tweaks to tests
1 parent 2b258e8 commit 1119e34

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

rosbridge_library/src/rosbridge_library/capabilities/advertise_action.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ async def execute_callback(self, goal):
8282
"action": self.action_name,
8383
"action_type": self.action_type,
8484
"args": message_conversion.extract_values(goal.request),
85+
"feedback": True,
8586
}
8687
self.protocol.send(goal_message)
8788

rosbridge_library/test/capabilities/test_action_capabilities.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def test_execute_advertised_action(self):
115115
goal_msg = loads(
116116
dumps(
117117
{
118-
"op": "call_service",
119-
"id": "foo",
118+
"op": "send_action_goal",
119+
"id": "foo2",
120120
"action": action_path,
121121
"action_type": "example_interfaces/Fibonacci",
122122
"args": {"order": 5},
@@ -219,7 +219,7 @@ def test_cancel_advertised_action(self):
219219
dumps(
220220
{
221221
"op": "send_action_goal",
222-
"id": "foo",
222+
"id": "foo3",
223223
"action": action_path,
224224
"action_type": "example_interfaces/Fibonacci",
225225
"args": {"order": 5},
@@ -246,7 +246,7 @@ def test_cancel_advertised_action(self):
246246
{
247247
"op": "cancel_action_goal",
248248
"action": action_path,
249-
"id": "foo",
249+
"id": "foo3",
250250
}
251251
)
252252
)
@@ -287,7 +287,7 @@ def test_unadvertise_action(self):
287287
dumps(
288288
{
289289
"op": "send_action_goal",
290-
"id": "foo",
290+
"id": "foo4",
291291
"action": action_path,
292292
"action_type": "example_interfaces/Fibonacci",
293293
"args": {"order": 5},

0 commit comments

Comments
 (0)