fix flaky test in test_bart_robot.py#947
fix flaky test in test_bart_robot.py#947olliesilvester merged 8 commits intoDiamondLightSource:mainfrom
Conversation
DiamondLightSource#943 Fix flakey bart robot unit test
olliesilvester
left a comment
There was a problem hiding this comment.
I don't think these extra statements guarantee that the task will have finished in time - if we change the sleep times then the tests still fail.
A good short term the solution would just be to increase await sleep(0.01) slightly, and to increase device.LOAD_TIMEOUT = 0.03 to account for this.
DiamondLightSource#943 load timeout and sleep time updated
I thought that since we are changing the state from PIN_MOUNTED to NO_PIN_MOUNTED and then back to PIN_MOUNTED, if we await the state change, the trigger() method will be called correctly. But if that doesn't fix the test, as a short-term solution, I have updated the timing of the LOAD_TIMEOUT |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #947 +/- ##
=======================================
Coverage 97.17% 97.17%
=======================================
Files 134 134
Lines 5631 5631
=======================================
Hits 5472 5472
Misses 159 159 ☔ View full report in Codecov by Sentry. |
* Add new position to backlight * Fix path to zoom params file
* added mirror and slits --------- Co-authored-by: Joseph Ware <53935796+DiamondJoseph@users.noreply.github.com>
format issue fixed
…ran-13/dodal into arikaran-13/issue-#943-fix
Thanks you |
#943 Fix flakey bart robot unit test
#943 Fix flakey bart robot unit test
Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}