Skip to content

Commit aa5e976

Browse files
committed
update tests
1 parent 9850829 commit aa5e976

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/viam/sdk/services/private/motion_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ std::pair<Motion::plan_with_status, std::vector<Motion::plan_with_status>> Motio
289289
return make_client_helper(this, *stub_, &StubType::GetPlan)
290290
.with(extra,
291291
[&](auto& request) {
292-
*request.mutable_component_name() = to_proto(component_name);
292+
*request.mutable_component_name() = component_name;
293293
request.set_last_plan_only(last_plan_only);
294294
if (execution_id) {
295295
*request.mutable_execution_id() = *execution_id;

src/viam/sdk/tests/test_motion.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ BOOST_AUTO_TEST_CASE(mock_move_and_get_pose) {
5050

5151
BOOST_CHECK_EQUAL(motion->current_location, init_fake_pose());
5252

53-
Name fake_name({"acme", "service", "motion"}, "fake-remote", "fake-motion");
5453
auto ws = std::make_shared<WorldState>(mock_world_state());
5554

56-
bool success = motion->move(fake_pose(), fake_name, ws, 0, fake_map());
55+
bool success = motion->move(fake_pose(), "fake-motion", ws, 0, fake_map());
5756

5857
BOOST_TEST(success);
5958
BOOST_CHECK_EQUAL(motion->current_location, fake_pose());
60-
BOOST_CHECK_EQUAL(motion->peek_component_name, fake_name);
59+
BOOST_CHECK_EQUAL(motion->peek_component_name, "fake-motion");
6160
BOOST_CHECK_EQUAL(*(motion->peek_world_state), *ws);
6261
}
6362

0 commit comments

Comments
 (0)