Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_main_telescope
-
Labels:
-
Story Points:1
-
Sprint:TSSW Sprint - Sep 26 - Oct 10
-
Team:Telescope and Site
-
Urgent?:No
Description
Every day or so Jenkins has a failure in a ts_mtrotator unit test:
tests/test_csc.py:142: in check_telemetry
|
self.assertAlmostEqual(motors_data.current[0], desired_current, delta=slop)
|
E AssertionError: -5.0 != 0.0 within 1e-06 delta (5.0 difference)
|
which then goes away again. The failure is in test_move after the move completes. It appears to be a race condition between the move ending and the telemetry not being updated accordingly.
Fix the test to be more robust.
Other changes:
Pull request: https://github.com/lsst-ts/ts_mtrotator/pull/70