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

Speed up device creation and connection in mock mode #641

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Conversation

coretl
Copy link
Collaborator

@coretl coretl commented Nov 8, 2024

No description provided.

@coretl
Copy link
Collaborator Author

coretl commented Nov 8, 2024

@rtuck99 or @DominicOram does this improve your test speeds?

@coretl coretl mentioned this pull request Nov 8, 2024
Copy link
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

Confirmed that this speeds our tests back up to ~30s and so fixes #640, thank you! Comments in code are all optional, otherwise looks good.

src/ophyd_async/core/_device.py Outdated Show resolved Hide resolved
src/ophyd_async/core/_device.py Outdated Show resolved Hide resolved
src/ophyd_async/core/_utils.py Show resolved Hide resolved
tests/core/test_device.py Outdated Show resolved Hide resolved
@coretl coretl merged commit 3d9f508 into main Nov 11, 2024
20 checks passed
@coretl coretl deleted the connect-mock-speed branch November 11, 2024 21: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