Test server destruction without explicit Shutdown

pull/21239/head
Vijay Pai 5 years ago
parent 55748facd8
commit 73de768139
  1. 5
      test/cpp/end2end/client_callback_end2end_test.cc

@ -169,7 +169,10 @@ class ClientCallbackEnd2endTest
void TearDown() override { void TearDown() override {
if (is_server_started_) { if (is_server_started_) {
server_->Shutdown(); // Although we would normally do an explicit shutdown, the server
// should also work correctly with just a destructor call. The regular
// end2end test uses explicit shutdown, so let this one just do reset.
server_.reset();
} }
if (picked_port_ > 0) { if (picked_port_ > 0) {
grpc_recycle_unused_port(picked_port_); grpc_recycle_unused_port(picked_port_);

Loading…
Cancel
Save