mirror of https://github.com/grpc/grpc-java.git
This will ease a lot of test scenarios that we want to automatically shut down servers and channels, with much more flexibility than `GrpcServerRule`. Resolves #3624 **ManagedChannel/Server cleanup details:** - If the test has already failed, call `shutdownNow()` for each of the resources registered. Throw (an exception including) the original failure. End. - If the test is successful, call `shutdown()` for each of the resources registered. - Call `awaitTermination()` with `timeout = deadline - current time` and assert termination for each resource. If any error occurs, break immediately and call `shutdownNow()` for the current resource and all the rest resources. - Throw the first exception encountered if any. |
||
|---|---|---|
| .. | ||
| src | ||
| BUILD.bazel | ||
| build.gradle | ||