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

Fix state test #849

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Fix state test #849

merged 1 commit into from
Sep 3, 2024

Conversation

gbregman
Copy link
Contributor

@gbregman gbregman commented Sep 3, 2024

Fixes #211

@gbregman gbregman self-assigned this Sep 3, 2024
@gbregman gbregman changed the title Test state test. Fix state test Sep 3, 2024
@gbregman gbregman requested a review from baum September 3, 2024 11:08
Copy link
Collaborator

@baum baum left a comment

Choose a reason for hiding this comment

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

Thank you @gbregman 🖖 The change looks great 👍
Just a small improvement suggestion. Instead of repeatedly checking and sleeping, the test would wait only as long as necessary. Using an event makes it clear that the test is waiting for the _state_notify_update function to be triggered. This approach would provide a more robust and responsive way to verify that the notification mechanism is functioning correctly.

tests/test_state.py Outdated Show resolved Hide resolved
tests/test_state.py Outdated Show resolved Hide resolved
tests/test_state.py Outdated Show resolved Hide resolved
tests/test_state.py Outdated Show resolved Hide resolved
tests/test_state.py Outdated Show resolved Hide resolved
tests/test_state.py Outdated Show resolved Hide resolved
Fixes ceph#211

Signed-off-by: Gil Bregman <[email protected]>
Copy link
Collaborator

@baum baum left a comment

Choose a reason for hiding this comment

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

lgtm 🖖

@gbregman gbregman merged commit 34c77a2 into ceph:devel Sep 3, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

CI | pytest | state test is not stable
2 participants