Skip to content

tests: avoid fixed sleep in KCM timestamp refresh test#8678

Open
jakub-vavra-cz wants to merge 1 commit intoSSSD:masterfrom
jakub-vavra-cz:kcm_timestamp
Open

tests: avoid fixed sleep in KCM timestamp refresh test#8678
jakub-vavra-cz wants to merge 1 commit intoSSSD:masterfrom
jakub-vavra-cz:kcm_timestamp

Conversation

@jakub-vavra-cz
Copy link
Copy Markdown
Contributor

Summary

  • Replace fixed 65s sleep in KCM refresh test with bounded polling loop.
  • Retry grep for the LDAP search log entry with 10s intervals up to 120s total.
  • Keep assertion logic unchanged while reducing timing flakiness.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request reorganizes imports and replaces a static sleep with a polling loop in test_kcm.py to improve test reliability. Feedback highlights a potential false positive where the test could pass if the log entry is never found, suggesting an explicit assertion on the command's return code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants