Skip to content

Add Wait.waitFor() overload for just error msg - #6572

Merged
DomGarguilo merged 1 commit into
apache:2.1from
DomGarguilo:addWaitOverload
Oct 1, 2026
Merged

DomGarguilo merged 1 commit into
apache:2.1from
DomGarguilo:addWaitOverload

Conversation

@DomGarguilo

Copy link
Copy Markdown
Member

This PR adds a new waitFor() overload that accepts the wait condition and an error message. Before this change, if we wanted to add an error message, we needed to use the overload that also specifies the wait duration and sleep values. A lot of the time I think we don't care to change those defaults and just want a good error message. This new overload allows for that.

I did not triage or change any existing usages to be replaced by this new overload since I did not want to assume case by case that we intended to keep those mentioned values default even when they were the same value. This new method is just a convenience for future use.

I also fixed some typos and tightened some of the javadoc comments while I was editing this file.

@DomGarguilo DomGarguilo added this to the 2.1.7 milestone Sep 30, 2026
@DomGarguilo DomGarguilo self-assigned this Sep 30, 2026
@DomGarguilo
DomGarguilo merged commit 8850fd1 into apache:2.1 Oct 1, 2026
9 checks passed
@DomGarguilo
DomGarguilo deleted the addWaitOverload branch October 1, 2026 20:58
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