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

Sets wait_jitter in worker_test.py #1927

Merged
merged 1 commit into from
Nov 22, 2016

Conversation

daveFNbuck
Copy link
Contributor

Description

Sets wait_jitter to 0.05 in all workers in worker_test.py where wait_interval is set to 0.1.

Motivation and Context

Many tests in worker_test.py set wait_interval to 0.1 but leave wait_jitter at its default value of 5.0. This sets wait_jitter to 0.05 in all such tests, which maintains the expected 0.1 jitter time. This should reduce each wait by about 2.5 seconds, and I've found that it decreases the running time of the worker tests on my machine by about 15 seconds.

Have you tested this? If so, how?

I ran the tests and they're 15 seconds faster.

Many tests in worker_test.py set wait_interval to 0.1 but leave
wait_jitter at its default value of 5.0. This sets wait_jitter to 0.05 in
all such tests, which maintains the expected 0.1 jitter time. This should
reduce each wait by about 2.5 seconds, and I've found that it decreases
the running time of the worker tests on my machine by about 15 seconds.
@mention-bot
Copy link

@daveFNbuck, thanks for your PR! By analyzing the history of the files in this pull request, we identified @javrasya, @Tarrasch and @erikbern to be potential reviewers.

@Tarrasch Tarrasch merged commit 93d29eb into spotify:master Nov 22, 2016
@Tarrasch
Copy link
Contributor

Awesome catch :)

@daveFNbuck daveFNbuck deleted the speed_up_worker_tests branch November 22, 2016 04:15
@daveFNbuck
Copy link
Contributor Author

Yeah, I was pretty surprised when I noticed it today!

This was referenced Jun 29, 2022
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.

3 participants