diff options
Diffstat (limited to 'test/cpp/qps')
-rw-r--r-- | test/cpp/qps/driver.cc | 3 | ||||
-rw-r--r-- | test/cpp/qps/qps_worker.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc index 88d4d52abc..4458e389e7 100644 --- a/test/cpp/qps/driver.cc +++ b/test/cpp/qps/driver.cc @@ -285,8 +285,7 @@ std::unique_ptr<ScenarioResult> RunScenario( if (!servers[i].stream->Read(&init_status)) { gpr_log(GPR_ERROR, "Server %zu did not yield initial status", i); } - if (qps_server_target_override != NULL && - strlen(qps_server_target_override) > 0) { + if (qps_server_target_override.length() > 0) { // overriding the qps server target only works if there is 1 server GPR_ASSERT(num_servers == 1); client_config.add_server_targets(qps_server_target_override); diff --git a/test/cpp/qps/qps_worker.h b/test/cpp/qps/qps_worker.h index 32ff98da9b..5c1d1a8ae6 100644 --- a/test/cpp/qps/qps_worker.h +++ b/test/cpp/qps/qps_worker.h @@ -22,6 +22,7 @@ #include <memory> #include <grpc/support/atm.h> +#include <grpc++/support/config.h> namespace grpc { |