aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/driver.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-02-12 10:13:52 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-02-12 10:13:52 -0800
commita7d41147ea62b185cbf45ae5b38da9fbf84395cf (patch)
treeac1aef0efd4b668ad9b0eb9b211394a2188e83ff /test/cpp/qps/driver.cc
parent6f87164f3c3bfd918a5bf571e2da6ec73cb9ea57 (diff)
parentbf53a74b3f626c38aa65dd01d2f3d321b53c1fbe (diff)
Merge github.com:grpc/grpc into bad_metadata
Diffstat (limited to 'test/cpp/qps/driver.cc')
-rw-r--r--test/cpp/qps/driver.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc
index c70b0303b8..80f6ada409 100644
--- a/test/cpp/qps/driver.cc
+++ b/test/cpp/qps/driver.cc
@@ -384,5 +384,18 @@ std::unique_ptr<ScenarioResult> RunScenario(
delete[] servers;
return result;
}
+
+void RunQuit() {
+ // Get client, server lists
+ auto workers = get_workers("QPS_WORKERS");
+ for (size_t i = 0; i < workers.size(); i++) {
+ auto stub = WorkerService::NewStub(
+ CreateChannel(workers[i], InsecureChannelCredentials()));
+ Void dummy;
+ grpc::ClientContext ctx;
+ GPR_ASSERT(stub->QuitWorker(&ctx, dummy, &dummy).ok());
+ }
+}
+
} // namespace testing
} // namespace grpc