-
Notifications
You must be signed in to change notification settings - Fork 11
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
Flaky test in test_utils #1022
Comments
the test is successful locally though |
the log is like above. It arguably contains the requested string |
locally was running:
|
running again, trying debugging logging |
now it worked. looking for reasons of non-determinism
|
@DominicOram I took a quick look into this - does the draft branch make any sense? |
No, I don't think that will work, you need to patch the full path to where it's imported (https://stackoverflow.com/questions/11351382/mock-patching-from-import-statement-in-python). This test is pretty horrible and niche, if it's flakiness is holding you up feel free to comment it out and link to this issue |
not really it's not holding me up[ |
FAILED tests/devices/unit_tests/test_utils.py::test_wrap_function_callback_errors_on_wrong_return_type - AssertionError: assert 'does not return a Status' in 'WARNING ophyd:status.py:254 Status(obj=None, done=False, success=False) has timed out\n'
https://github.com/DiamondLightSource/dodal/actions/runs/12991801896/job/36230206846?pr=722
The text was updated successfully, but these errors were encountered: