Merge pull request #3174 from vjpai/shutitdown2

Put timeout on QPS test server shutdown
pull/3325/head
Craig Tiller 9 years ago
commit 138de60a1e
  1. 4
      test/cpp/qps/server_async.cc

@ -98,7 +98,9 @@ class AsyncQpsServerTest : public Server {
}
}
~AsyncQpsServerTest() {
server_->Shutdown();
auto deadline = std::chrono::high_resolution_clock::now() +
std::chrono::seconds(10);
server_->Shutdown(deadline);
for (auto ss = shutdown_state_.begin(); ss != shutdown_state_.end(); ++ss) {
(*ss)->set_shutdown();
}

Loading…
Cancel
Save