aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/worker.cc
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-01-19 10:59:42 -0800
committerGravatar Vijay Pai <vpai@google.com>2016-01-19 10:59:42 -0800
commitd3ea2708cc94e8d69b1d6d4d0e3933e10245fa67 (patch)
treee4b341ee5ce3ed9bba9e367cc4cbb80bf72c40b0 /test/cpp/qps/worker.cc
parent3bd7ecce16d8bda27ac1268641183512b54f4721 (diff)
Re-enable explicit specification of server port for qps worker. Also
add in a check that we don't try to use generic testing for sync or unary.
Diffstat (limited to 'test/cpp/qps/worker.cc')
-rw-r--r--test/cpp/qps/worker.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/qps/worker.cc b/test/cpp/qps/worker.cc
index 430ffb7cdc..19391c1855 100644
--- a/test/cpp/qps/worker.cc
+++ b/test/cpp/qps/worker.cc
@@ -44,6 +44,7 @@
#include "test/cpp/util/test_config.h"
DEFINE_int32(driver_port, 0, "Port for communication with driver");
+DEFINE_int32(server_port, 0, "Port for operation as a server");
static bool got_sigint = false;
@@ -53,7 +54,7 @@ namespace grpc {
namespace testing {
static void RunServer() {
- QpsWorker worker(FLAGS_driver_port);
+ QpsWorker worker(FLAGS_driver_port, FLAGS_server_port);
while (!got_sigint) {
gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME),