Fixing interop client to send all RPC types for each duration_per_query.

pull/25030/head
Donna Dionne 4 years ago
parent 3e2cca4afc
commit 88876b194c
  1. 9
      test/cpp/interop/xds_interop_client.cc

@ -462,10 +462,11 @@ void RunTestLoop(std::chrono::duration<double> duration_per_query,
rpc_configs_queue->rpc_configs_queue.pop_front();
}
}
for (const auto& config : configs) {
elapsed = std::chrono::system_clock::now() - start;
if (elapsed > duration_per_query) {
start = std::chrono::system_clock::now();
elapsed = std::chrono::system_clock::now() - start;
if (elapsed > duration_per_query) {
start = std::chrono::system_clock::now();
for (const auto& config : configs) {
if (config.type == ClientConfigureRequest::EMPTY_CALL) {
client.AsyncEmptyCall(config.metadata);
} else if (config.type == ClientConfigureRequest::UNARY_CALL) {

Loading…
Cancel
Save