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

Add a defaultTryTimeout config parameter and use it for the try method. #7163

Merged
merged 1 commit into from
May 10, 2016

Conversation

LeeDr
Copy link

@LeeDr LeeDr commented May 10, 2016

We had a previous condition where we used the same 90 seconds timeout for finding elements and for the test to complete. The problem with that was if it failed to find an element the test would timeout first and you couldn't tell which element it failed to find.
That was fixed by adding a 10 second defaultFindTimeout.

But the next problem was that the "try" was calling tryForTime with that same 10 second defaultFindTimeout. And since try and tryForTime most often contain "find"s, we have to have a longer timeout for them. I picked 40 seconds.

@spalger
Copy link
Contributor

spalger commented May 10, 2016

LGTM

@spalger spalger merged commit c8c2ab9 into elastic:master May 10, 2016
@LeeDr LeeDr deleted the defaultTryTimeout branch May 10, 2016 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants