Channelz Service Test Shutdown (#29068)

pull/29070/head
Yash Tibrewal 3 years ago committed by GitHub
parent 99a30de9e7
commit c9946c2183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      test/cpp/end2end/channelz_service_test.cc

@ -213,6 +213,13 @@ class ChannelzServerTest : public ::testing::TestWithParam<CredentialsType> {
proxy_server_ = proxy_builder.BuildAndStart(); proxy_server_ = proxy_builder.BuildAndStart();
} }
void TearDown() override {
for (auto& backend : backends_) {
backend.server->Shutdown(grpc_timeout_milliseconds_to_deadline(0));
}
proxy_server_->Shutdown(grpc_timeout_milliseconds_to_deadline(0));
}
// Sets the proxy up to have an arbitrary number of backends. // Sets the proxy up to have an arbitrary number of backends.
void ConfigureProxy(size_t num_backends) { void ConfigureProxy(size_t num_backends) {
backends_.resize(num_backends); backends_.resize(num_backends);

Loading…
Cancel
Save