aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/driver.cc
diff options
context:
space:
mode:
authorGravatar Guantao Liu <guantaol@google.com>2017-07-14 18:33:30 -0700
committerGravatar Guantao Liu <guantaol@google.com>2017-07-14 18:33:30 -0700
commit91d8f0b5a846553ed11d0908129aaad116f63be4 (patch)
treecbe7c0bd92d5db331ee127a6a691b3782ad73e1e /test/cpp/qps/driver.cc
parentac9fdfbc40507a6c5453b171561537ee9cafe61a (diff)
Added the missing header file and fixed a syntax error.
Diffstat (limited to 'test/cpp/qps/driver.cc')
-rw-r--r--test/cpp/qps/driver.cc3
1 files changed, 1 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);