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

Reduce number of sleep calls in tests #63

Merged
merged 1 commit into from Jun 18, 2021
Merged

Reduce number of sleep calls in tests #63

merged 1 commit into from Jun 18, 2021

Conversation

Kobzol
Copy link
Collaborator

@Kobzol Kobzol commented Jun 17, 2021

This PR introduces wait_for_job_state and wait_for_worker_state test helper functions which should be used to wait until the specified state is achieved for a specific set of jobs or workers. This should help reduce the "flakiness" of tests.

Using the helpers reduced the number of time.sleep calls inside tests from 38 to 10.

@Kobzol Kobzol requested a review from spirali June 17, 2021 18:29
@Kobzol Kobzol merged commit cb29cbe into main Jun 18, 2021
@Kobzol Kobzol deleted the test-reduce-sleeping branch June 18, 2021 08:10
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.

None yet

2 participants