From dc9e8983100507fc486e042facf9838d9e7f5203 Mon Sep 17 00:00:00 2001 From: Wanlin Du <67486458+wanlin31@users.noreply.github.com> Date: Thu, 3 Feb 2022 11:35:47 -0600 Subject: [PATCH] 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. --- test/cpp/qps/driver.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc index 0a70084e372..bc4cc4bfadc 100644 --- a/test/cpp/qps/driver.cc +++ b/test/cpp/qps/driver.cc @@ -483,6 +483,7 @@ std::unique_ptr 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(