@@ -259,10 +259,10 @@ func TestServerMoveOnGlobe(t *testing.T) {
259259 test .That (t , * req .MotionCfg .ObstaclePollingFreqHz , test .ShouldAlmostEqual , obstaclePollingFrequencyHz )
260260 test .That (t , * req .MotionCfg .PositionPollingFreqHz , test .ShouldAlmostEqual , positionPollingFrequencyHz )
261261 test .That (t , len (req .MotionCfg .ObstacleDetectors ), test .ShouldAlmostEqual , 2 )
262- test .That (t , req .MotionCfg .ObstacleDetectors [0 ].VisionServiceName , test .ShouldResemble , vision .Named ("vision service 1" ))
263- test .That (t , req .MotionCfg .ObstacleDetectors [0 ].CameraName , test .ShouldResemble , camera .Named ("camera 1" ))
264- test .That (t , req .MotionCfg .ObstacleDetectors [1 ].VisionServiceName , test .ShouldResemble , vision .Named ("vision service 2" ))
265- test .That (t , req .MotionCfg .ObstacleDetectors [1 ].CameraName , test .ShouldResemble , camera .Named ("camera 2" ))
262+ test .That (t , req .MotionCfg .ObstacleDetectors [0 ].VisionServiceName , test .ShouldResemble , vision .Named ("vision service 1" ). ShortName () )
263+ test .That (t , req .MotionCfg .ObstacleDetectors [0 ].CameraName , test .ShouldResemble , camera .Named ("camera 1" ). ShortName () )
264+ test .That (t , req .MotionCfg .ObstacleDetectors [1 ].VisionServiceName , test .ShouldResemble , vision .Named ("vision service 2" ). ShortName () )
265+ test .That (t , req .MotionCfg .ObstacleDetectors [1 ].CameraName , test .ShouldResemble , camera .Named ("camera 2" ). ShortName () )
266266 test .That (t , len (req .BoundingRegions ), test .ShouldEqual , 1 )
267267 test .That (t , req .BoundingRegions [0 ], test .ShouldResemble , geoGeometry3 )
268268 return firstExecutionID , nil
@@ -389,10 +389,10 @@ func TestServerMoveOnMap(t *testing.T) {
389389 test .That (t , * req .MotionCfg .ObstaclePollingFreqHz , test .ShouldAlmostEqual , obstaclePollingFrequencyHz )
390390 test .That (t , * req .MotionCfg .PositionPollingFreqHz , test .ShouldAlmostEqual , positionPollingFrequencyHz )
391391 test .That (t , len (req .MotionCfg .ObstacleDetectors ), test .ShouldAlmostEqual , 2 )
392- test .That (t , req .MotionCfg .ObstacleDetectors [0 ].VisionServiceName , test .ShouldResemble , vision .Named ("vision service 1" ))
393- test .That (t , req .MotionCfg .ObstacleDetectors [0 ].CameraName , test .ShouldResemble , camera .Named ("camera 1" ))
394- test .That (t , req .MotionCfg .ObstacleDetectors [1 ].VisionServiceName , test .ShouldResemble , vision .Named ("vision service 2" ))
395- test .That (t , req .MotionCfg .ObstacleDetectors [1 ].CameraName , test .ShouldResemble , camera .Named ("camera 2" ))
392+ test .That (t , req .MotionCfg .ObstacleDetectors [0 ].VisionServiceName , test .ShouldResemble , vision .Named ("vision service 1" ). ShortName () )
393+ test .That (t , req .MotionCfg .ObstacleDetectors [0 ].CameraName , test .ShouldResemble , camera .Named ("camera 1" ). ShortName () )
394+ test .That (t , req .MotionCfg .ObstacleDetectors [1 ].VisionServiceName , test .ShouldResemble , vision .Named ("vision service 2" ). ShortName () )
395+ test .That (t , req .MotionCfg .ObstacleDetectors [1 ].CameraName , test .ShouldResemble , camera .Named ("camera 2" ). ShortName () )
396396 return firstExecutionID , nil
397397 }
398398 moveOnMapResponse , err := server .MoveOnMap (context .Background (), moveOnMapRequest )
0 commit comments