Skip to content

Skip wait between tests if iterations are exhausted#65

Merged
danopolan merged 5 commits into
mainfrom
iterations-wait-skipped
Jun 28, 2026
Merged

Skip wait between tests if iterations are exhausted#65
danopolan merged 5 commits into
mainfrom
iterations-wait-skipped

Conversation

@danopolan

Copy link
Copy Markdown
Collaborator

Fix to skip wait time at the end of the test iteration defined by between(min_wait, max_wait) in case iterations are exhausted.

Curently:
If you test takes 30 seconds to execute, but you run users:1, iterations:1, runtime:600, min_wait:601 the test will end after 600 seconds, not after 30s.

That is because iterations are increased at the end of a test, but evaluated at the start of next test. Wait is applied at the end of the iteration. So test single iteration time is 30(test) + 601(wait), which is gt 600(runtime) and so it will time out.

Newly:
Iterations are increased at the end of the test, then wait is applied, then iterations limit is checked at the start of the next test. But in case iterations are exhausted, wait is skipped.

@Meenakshi2000 Meenakshi2000 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@danopolan
danopolan merged commit e791da4 into main Jun 28, 2026
8 checks passed
@danopolan
danopolan deleted the iterations-wait-skipped branch June 28, 2026 18:29
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