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

Retry with backoff when waiting for a given state in app-ng tests #249

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

appleby
Copy link
Contributor

@appleby appleby commented Mar 24, 2020

Previously, tests that waited for a PERSISTENT-QVM or JOB to reach a particular state would just blindly loop repeating the request and hope for the best. This commit adds a WAIT-FOR function that retries the request with an increasing backoff delay between failures.

I don't know if http requests suddenly got faster or if something in the QVM suddenly got slower, but I noticed the wait/resume test suddenly started failing on my laptop without this change.

Previously, tests that waited for a PERSISTENT-QVM or JOB to reach a
particular state would just blindly loop repeating the request and
hope for the best. This commit adds a WAIT-FOR function that retries
the request with an increasing backoff delay between failures.
@appleby appleby requested a review from a team as a code owner March 24, 2020 23:10
@stylewarning stylewarning merged commit 7ea769f into master Mar 25, 2020
@stylewarning stylewarning deleted the retry-with-backoff-in-app-ng-tests branch March 25, 2020 18:09
@appleby appleby mentioned this pull request Mar 26, 2020
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