@@ -981,9 +981,9 @@ func TestStartWaypoint(t *testing.T) {
981981 if len (s .sprs ) == 2 {
982982 // MoveOnGlobe was called twice, once for each waypoint
983983 test .That (t , len (s .mogrs ), test .ShouldEqual , 2 )
984- test .That (t , s .mogrs [0 ].ComponentName , test .ShouldResemble , s .base .Name ().ShortName () )
984+ test .That (t , s .mogrs [0 ].ComponentName , test .ShouldResemble , s .base .Name ().Name )
985985 test .That (t , math .IsNaN (s .mogrs [0 ].Heading ), test .ShouldBeTrue )
986- test .That (t , s .mogrs [0 ].MovementSensorName , test .ShouldResemble , s .movementSensor .Name ().ShortName () )
986+ test .That (t , s .mogrs [0 ].MovementSensorName , test .ShouldResemble , s .movementSensor .Name ().Name )
987987
988988 test .That (t , s .mogrs [0 ].Extra , test .ShouldResemble , map [string ]interface {}{
989989 "motion_profile" : "position_only" ,
@@ -993,9 +993,9 @@ func TestStartWaypoint(t *testing.T) {
993993 // waypoint 1
994994 test .That (t , s .mogrs [0 ].Destination , test .ShouldResemble , pt1 )
995995
996- test .That (t , s .mogrs [1 ].ComponentName , test .ShouldResemble , s .base .Name ().ShortName () )
996+ test .That (t , s .mogrs [1 ].ComponentName , test .ShouldResemble , s .base .Name ().Name )
997997 test .That (t , math .IsNaN (s .mogrs [1 ].Heading ), test .ShouldBeTrue )
998- test .That (t , s .mogrs [1 ].MovementSensorName , test .ShouldResemble , s .movementSensor .Name ().ShortName () )
998+ test .That (t , s .mogrs [1 ].MovementSensorName , test .ShouldResemble , s .movementSensor .Name ().Name )
999999 test .That (t , s .mogrs [1 ].Extra , test .ShouldResemble , map [string ]interface {}{
10001000 "motion_profile" : "position_only" ,
10011001 })
@@ -1005,11 +1005,11 @@ func TestStartWaypoint(t *testing.T) {
10051005 test .That (t , s .mogrs [1 ].Destination , test .ShouldResemble , pt2 )
10061006
10071007 // PlanStop called twice, once for each waypoint
1008- test .That (t , s .sprs [0 ].ComponentName , test .ShouldResemble , s .base .Name ().ShortName () )
1009- test .That (t , s .sprs [1 ].ComponentName , test .ShouldResemble , s .base .Name ().ShortName () )
1008+ test .That (t , s .sprs [0 ].ComponentName , test .ShouldResemble , s .base .Name ().Name )
1009+ test .That (t , s .sprs [1 ].ComponentName , test .ShouldResemble , s .base .Name ().Name )
10101010
10111011 // Motion reports that the last execution succeeded
1012- ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().ShortName () })
1012+ ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().Name })
10131013 test .That (t , err , test .ShouldBeNil )
10141014 test .That (t , len (ph ), test .ShouldEqual , 1 )
10151015 test .That (t , ph [0 ].Plan .ExecutionID , test .ShouldResemble , executionIDs [1 ])
@@ -1256,7 +1256,7 @@ func TestStartWaypoint(t *testing.T) {
12561256 test .That (t , s .mogrs [4 ].Destination , test .ShouldResemble , pt1 )
12571257
12581258 // Motion reports that the last execution succeeded
1259- ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().ShortName () })
1259+ ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().Name })
12601260 test .That (t , err , test .ShouldBeNil )
12611261 test .That (t , len (ph ), test .ShouldEqual , 1 )
12621262 test .That (t , ph [0 ].Plan .ExecutionID , test .ShouldResemble , executionIDs [2 ])
@@ -1389,7 +1389,7 @@ func TestStartWaypoint(t *testing.T) {
13891389 test .That (t , wpAfter , test .ShouldResemble , wpBefore )
13901390
13911391 // check the last state of the execution
1392- ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().ShortName () })
1392+ ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().Name })
13931393 test .That (t , err , test .ShouldBeNil )
13941394 test .That (t , len (ph ), test .ShouldEqual , 1 )
13951395 test .That (t , len (ph [0 ].StatusHistory ), test .ShouldEqual , 2 )
@@ -1521,7 +1521,7 @@ func TestStartWaypoint(t *testing.T) {
15211521 // Motion reports that the last execution succeeded
15221522 s .RUnlock ()
15231523
1524- ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().ShortName () })
1524+ ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().Name })
15251525 test .That (t , err , test .ShouldBeNil )
15261526 test .That (t , len (ph ), test .ShouldEqual , 1 )
15271527 test .That (t , ph [0 ].Plan .ExecutionID , test .ShouldResemble , executionIDs [1 ])
@@ -1650,7 +1650,7 @@ func TestStartWaypoint(t *testing.T) {
16501650 // Motion reports that the last execution succeeded
16511651 s .RUnlock ()
16521652
1653- ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().ShortName () })
1653+ ph , err := s .injectMS .PlanHistory (ctx , motion.PlanHistoryReq {ComponentName : s .base .Name ().Name })
16541654 test .That (t , err , test .ShouldBeNil )
16551655 test .That (t , len (ph ), test .ShouldEqual , 1 )
16561656 test .That (t , ph [0 ].Plan .ExecutionID , test .ShouldResemble , executionIDs [0 ])
0 commit comments