-
Notifications
You must be signed in to change notification settings - Fork 3k
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 and add test for when locusts fail to exit at end of iteration during stop timeout. #1127
Conversation
…ause that is the only place it is really needed)
Codecov Report
@@ Coverage Diff @@
## master #1127 +/- ##
==========================================
+ Coverage 74.58% 74.75% +0.16%
==========================================
Files 18 18
Lines 1802 1806 +4
Branches 269 271 +2
==========================================
+ Hits 1344 1350 +6
+ Misses 394 389 -5
- Partials 64 67 +3
Continue to review full report at Codecov.
|
Ah, I see, my bad! Could we move the check from the |
You mean after line 365? That doesnt work, because it wont be called on interrupts. |
Wait, I get it now, you meant move the other check. Yes, that works, and arguably makes more sense. Commiting it now... |
Hmm, I guess we also need to to do the check before |
Always running one iteration when using stop-timeout should be fine imo (maybe even desirable). I can definitely add it, but personally I dont think it is worth bloating the code. |
Yes, it does bloat the code a bit, but I do think we should do it. A test case for it would probably also be good, to make sure we don't get a regression at some point in the future. |
…on of the task if the test is stopped during setup.
Nice! LGTM? |
I discovered a bug introduced in the last commit on stop-timeout. Adding a test case for it (and once you have seen that it actually fails), I will revert that commit to show that it now works :)