diff options
author | 2016-03-14 17:12:52 -0700 | |
---|---|---|
committer | 2016-03-14 17:12:52 -0700 | |
commit | 63326281d793ec44f1fe818eefac0342ba01388b (patch) | |
tree | a33c13fe610f786458e86dc0d1782a0fa72f26d7 /test/cpp/qps/server_async.cc | |
parent | db3bccade402f651f5eb770aa49dc09735ece260 (diff) |
1. Remove all deadlines from the RPCs and shutdown in this code.
These tests (especially unconstrained versions) can get very
backlogged and may take a while to finish. We sometimes flake waiting
for that. This is not hazardous (IMO), as the scripts that run these
tests already have timeouts to make sure that these don't truly go on
forever.
2. Make the time spent in the benchmark phase actually be
benchmark_seconds rather than benchmark_seconds-warmup_seconds
as it is currently.
Diffstat (limited to 'test/cpp/qps/server_async.cc')
-rw-r--r-- | test/cpp/qps/server_async.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc index 2024e0bfef..d7b3f76e0e 100644 --- a/test/cpp/qps/server_async.cc +++ b/test/cpp/qps/server_async.cc @@ -130,8 +130,7 @@ class AsyncQpsServerTest : public Server { } } ~AsyncQpsServerTest() { - auto deadline = GRPC_TIMEOUT_SECONDS_TO_DEADLINE(10); - server_->Shutdown(deadline); + server_->Shutdown(); for (auto ss = shutdown_state_.begin(); ss != shutdown_state_.end(); ++ss) { (*ss)->set_shutdown(); } |