diff options
author | 2016-02-11 06:05:24 -0800 | |
---|---|---|
committer | 2016-02-11 06:05:24 -0800 | |
commit | 1132c6b7db990d83fd178c927c39d0b67fa02778 (patch) | |
tree | 97a71efd97084efbc8c8935624f3704a1bf9b8e3 /test/cpp/qps/client_sync.cc | |
parent | d472ad2a7fe19474409a5dff1afab5244072fda4 (diff) |
Simplify and properly implement openloop testing.
Revive it in tests as well
Diffstat (limited to 'test/cpp/qps/client_sync.cc')
-rw-r--r-- | test/cpp/qps/client_sync.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc index d93537b279..edfc246a25 100644 --- a/test/cpp/qps/client_sync.cc +++ b/test/cpp/qps/client_sync.cc @@ -84,11 +84,8 @@ class SynchronousClient protected: void WaitToIssue(int thread_idx) { - grpc_time next_time; - if (NextIssueTime(thread_idx, &next_time)) { - gpr_timespec next_timespec; - TimepointHR2Timespec(next_time, &next_timespec); - gpr_sleep_until(next_timespec); + if (!closed_loop_) { + gpr_sleep_until(NextIssueTime(thread_idx)); } } |