aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2016-01-19 11:40:10 -0800
committerGravatar vjpai <vpai@google.com>2016-01-19 11:40:10 -0800
commitcd624d2eeeb973f0a8170365a6a06464d320d463 (patch)
tree876541066cf763a0f52907d4367fec5bd2036c30 /test
parentd3ea2708cc94e8d69b1d6d4d0e3933e10245fa67 (diff)
Dealt with a nit
Diffstat (limited to 'test')
-rw-r--r--test/cpp/qps/qps_worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/qps/qps_worker.cc b/test/cpp/qps/qps_worker.cc
index 73eb232775..c0276d05b3 100644
--- a/test/cpp/qps/qps_worker.cc
+++ b/test/cpp/qps/qps_worker.cc
@@ -197,7 +197,7 @@ class WorkerServiceImpl GRPC_FINAL : public WorkerService::Service {
if (!args.has_setup()) {
return Status(StatusCode::INVALID_ARGUMENT, "");
}
- if (server_port_) {
+ if (server_port_ != 0) {
args.mutable_setup()->set_port(server_port_);
}
auto server = CreateServer(args.setup());