aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util/cli_call.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/util/cli_call.cc')
-rw-r--r--test/cpp/util/cli_call.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/util/cli_call.cc b/test/cpp/util/cli_call.cc
index 4f1a20c727..3b0bb9eeba 100644
--- a/test/cpp/util/cli_call.cc
+++ b/test/cpp/util/cli_call.cc
@@ -60,7 +60,8 @@ CliCall::CliCall(std::shared_ptr<grpc::Channel> channel,
ctx_.AddMetadata(iter->first, iter->second);
}
}
- call_ = stub_->Call(&ctx_, method, &cq_, tag(1));
+ call_ = stub_->PrepareCall(&ctx_, method, &cq_);
+ call_->StartCall(tag(1));
void* got_tag;
bool ok;
cq_.Next(&got_tag, &ok);