aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/client_sync.cc
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2016-10-30 23:49:39 -0700
committerGravatar Muxi Yan <mxyan@google.com>2016-10-30 23:49:39 -0700
commit43944082daf3e8f63328ba7c18685b0df3cf212a (patch)
treef91d8de96683179e39a90f654339968cb7b6dff1 /test/cpp/qps/client_sync.cc
parentea3b568b8fef498f6aeec4349702c588afe709da (diff)
parent1c55919ece40ec0cf7baa280c55273ab7fbea83f (diff)
Merge remote-tracking branch 'upstream/master' into core-end2end-tests-cronet-update
Diffstat (limited to 'test/cpp/qps/client_sync.cc')
-rw-r--r--test/cpp/qps/client_sync.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc
index 8062424a1f..f61e80d76b 100644
--- a/test/cpp/qps/client_sync.cc
+++ b/test/cpp/qps/client_sync.cc
@@ -130,7 +130,8 @@ class SynchronousUnaryClient GRPC_FINAL : public SynchronousClient {
grpc::Status s =
stub->UnaryCall(&context, request_, &responses_[thread_idx]);
entry->set_value((UsageTimer::Now() - start) * 1e9);
- return s.ok();
+ entry->set_status(s.error_code());
+ return true;
}
};