diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-10 21:56:37 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-10 21:56:37 -0700 |
commit | 138de60a1eec9106c76226a39174439669018c88 (patch) | |
tree | b190119947b0127f5a50c11d526e319f569e900b /test | |
parent | 2df0f39553d78c09c1165be13ee2d63ada1445a2 (diff) | |
parent | d514b21cc842fc388eec4e7c260b2c6a3de27c17 (diff) |
Merge pull request #3174 from vjpai/shutitdown2
Put timeout on QPS test server shutdown
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/qps/server_async.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc index 0ed2048d4a..1251679ba2 100644 --- a/test/cpp/qps/server_async.cc +++ b/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(); } |