Skip to content

Commit 5481a4a

Browse files
committed
updated tests to reflect renaming of ValidateReferenceArray service
1 parent e31d226 commit 5481a4a

File tree

1 file changed

+6
-6
lines changed
  • test/control_manager/validate_reference_array_service

1 file changed

+6
-6
lines changed

test/control_manager/validate_reference_array_service/test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bool Tester::test() {
3434

3535
mrs_msgs::ValidateReferenceArrayRequest req;
3636

37-
req.list.header.frame_id = _uav_name_ + "/world_origin";
37+
req.array.header.frame_id = _uav_name_ + "/world_origin";
3838

3939
{
4040
mrs_msgs::Reference msg;
@@ -44,7 +44,7 @@ bool Tester::test() {
4444
msg.position.z = 2;
4545
msg.heading = 0;
4646

47-
req.list.list.push_back(msg);
47+
req.array.array.push_back(msg);
4848
}
4949

5050
{
@@ -55,7 +55,7 @@ bool Tester::test() {
5555
msg.position.z = 2;
5656
msg.heading = 0;
5757

58-
req.list.list.push_back(msg);
58+
req.array.array.push_back(msg);
5959
}
6060

6161
{
@@ -66,7 +66,7 @@ bool Tester::test() {
6666
msg.position.z = -100;
6767
msg.heading = 0;
6868

69-
req.list.list.push_back(msg);
69+
req.array.array.push_back(msg);
7070
}
7171

7272
{
@@ -77,7 +77,7 @@ bool Tester::test() {
7777
msg.position.z = 3;
7878
msg.heading = 0;
7979

80-
req.list.list.push_back(msg);
80+
req.array.array.push_back(msg);
8181
}
8282

8383
{
@@ -115,7 +115,7 @@ bool Tester::test() {
115115
// | ---------------- now try with bad frame id --------------- |
116116

117117
{
118-
req.list.header.frame_id = "frame_that_does_not_exist";
118+
req.array.header.frame_id = "frame_that_does_not_exist";
119119

120120
auto [success, response] = uh->validateReferenceArray(req);
121121

0 commit comments

Comments
 (0)