-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Th2 5107] User can't change gRPC retry configuration via schema #282
Conversation
* the whole default gRPC retry interval is about 1 hour
src/test/kotlin/com/exactpro/th2/common/schema/grpc/router/impl/DefaultGrpcRouterTest.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/exactpro/th2/common/schema/grpc/configuration/GrpcRetryConfiguration.kt
Outdated
Show resolved
Hide resolved
} | ||
|
||
clientServerBaton.get("wait client thread start") | ||
Thread.sleep(RETRY_TIMEOUT * 2) |
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.
Why do we need to wait here? If you need to make sure the task is executed within a timeout you can use Assertions.assertTimeoutPreemptively
method
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 use fixed retry timeout in these tests. I wait time to grantee that client switch to retry mode. The time can be reduced because gRPC router begin retry after first failure
No description provided.