Skip to content
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

Add test for context race condition #600

Merged
merged 3 commits into from
Oct 29, 2024
Merged

Add test for context race condition #600

merged 3 commits into from
Oct 29, 2024

Conversation

DominicOram
Copy link
Contributor

@DominicOram DominicOram commented Oct 4, 2024

Adds test to cover DiamondLightSource/dodal#791.

To test:

  • On latest aioca confirm this test times out
  • Run pip install git+https://github.com/DiamondLightSource/aioca.git@contexts and confirm it passes

Note we shouldn't merge this until the linked aioca branch is released

Comment on lines 914 to 916
await ophyd_async_sig.connect()
ophyd_signal = EpicsSignal(ophyd_read)
ophyd_signal.wait_for_connection()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put any timeouts in here, or does it just hang anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It hangs either way but I've added it anyway

@DominicOram
Copy link
Contributor Author

Linting seems broken on main so I don't think it's related to this change specifically

@coretl
Copy link
Collaborator

coretl commented Oct 29, 2024

Linting seems broken on main so I don't think it's related to this change specifically

Yes, mainly bluesky/bluesky#1809

@DominicOram DominicOram merged commit c91d283 into main Oct 29, 2024
17 of 18 checks passed
@DominicOram DominicOram deleted the test_aioca_contexts branch October 29, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants