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 off by 1 error in stats.py resulting in additional request always being off #566

Merged
merged 1 commit into from
Mar 23, 2017

Conversation

aldenpeterson-wf
Copy link
Contributor

Address #399, which is the same issue we just hit in our usage.

The counter is incremented in log but it was being checked for the end condition before that point was hit.
This meant that if you ran 3 requests using the command line mode:

locust --no-web -c 1 -r 1 -n 3 -f tornado_nats_locust.py

you would end with Locust actually executing 4 tasks.

FYI @cgoldberg @heyman @seangerhardt-wf

@heyman heyman merged commit 33a0061 into locustio:master Mar 23, 2017
@heyman
Copy link
Member

heyman commented Mar 23, 2017

Thanks!

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