Allow --qps_server_target_override to replace the original server (#28686)

This commit makes sure that the client's server target is only
from the --qps_server_target_override, once the flag is in use.
Any prior server targets are cleared away.
pull/28780/head
Wanlin Du 3 years ago committed by GitHub
parent 9bcabbac32
commit dc9e898310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      test/cpp/qps/driver.cc

@ -483,6 +483,7 @@ std::unique_ptr<ScenarioResult> RunScenario(
// overriding the qps server target only makes since if there is <= 1
// servers
GPR_ASSERT(num_servers <= 1);
client_config.clear_server_targets();
client_config.add_server_targets(qps_server_target_override);
}
client_config.set_median_latency_collection_interval_millis(

Loading…
Cancel
Save