You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, I this seems to be because you use both --iterations and also have stages configured in the exported options. If you wait for 2 minutes and 20 seconds (the sum of the stages' duration), the test will finish. And k6 will only make 1000 http requests, so the execution finishes when it's supposed to (whenever one of the end conditions is reached), but then k6 just waits there without exiting... And the problem seems to only happen with stages, not with duration, here's a shorter self-contained example that reproduces the issue without any CLI flags:
Environment
OS: macOS 10.13.6 (17G65)
k6: v0.22.1
What happens
I get stuck in an infinite loop giving me the following output:
Note: the amount of finished iterations seem to vary in the last tens.
How to replicate
./k6 run --iterations 10000 --vus 100 script.js
The text was updated successfully, but these errors were encountered: