-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix flakey bart robot unit test #943
Comments
FYI, I'm taking a look at this flaky test right now. |
It seems like what makes this test flaky is the sleep time sometimes being to short. Increasing the sleep time would most likely fix the issue. |
I think increasing the sleep is good enough for this issue, however I like the idea of using |
Should I open a PR to at least close this issue? |
Yes, go ahead, thank you |
DiamondLightSource#943 Fix flakey bart robot unit test
DiamondLightSource#943 load timeout and sleep time updated
#943 Fix flakey bart robot unit test
#943 Fix flakey bart robot unit test
This came up again |
I think we need to properly mock it and rethink how the test works rather than just change the length of sleeps. e.g. we could patch sleep like in
|
One of our tests for the bart robot occasionally fails. We should fix this
tests/devices/unit_tests/test_bart_robot.py::test_given_program_not_running_and_pin_unmounts_then_mounts_when_load_pin_then_pin_loaded - AssertionError: Expected 'trigger' to have been called once. Called 0 times.
Or see https://github.com/DiamondLightSource/dodal/actions/runs/12165707719/job/33930319285
Acceptance Criteria
The text was updated successfully, but these errors were encountered: