-
Notifications
You must be signed in to change notification settings - Fork 110
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 unit tests for History Iterator in Replayer #980
Add unit tests for History Iterator in Replayer #980
Conversation
} | ||
|
||
@Test(expected = Error.class) | ||
public void testGetHistoryFailure() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a spin lock :( retryOptions does not have a backoff coefficient. So it tries around 100 times in 4 seconds until it gives up. Our tests are rather slow, but I'm unsure how this should be resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've switched to usage of validateBuildWithDefaults since I think it should be used instead of manual build()
What changed?
Added unit tests for DecisionTaskWithHistoryIterator inside Replayer.
I had to go with instanstiating private class, otherwise I need to build the whole history for replayer.
Why?
Improving code coverage.
How did you test it?
Potential risks
Release notes
Documentation Changes