Change the test name to long_lived_channel

pull/16611/head
Adele Zhou 6 years ago
parent 094dc6822c
commit 165417e4fa
  1. 6
      doc/interop-test-descriptions.md
  2. 6
      test/cpp/interop/client.cc
  3. 8
      test/cpp/interop/interop_client.cc
  4. 4
      test/cpp/interop/interop_client.h

@ -944,10 +944,10 @@ the experimental flag, `soak_iterations`.
This tests puts stress on several gRPC components; the resolver, the load
balancer, and the RPC hotpath.
#### long_connection
#### long_lived_channel
The client performs a number of large_unary RPCs over a single connection
with a fixed but configuration interval between the RPCs.
The client performs a number of large_unary RPCs over a single long-lived
channel with a fixed but configurable interval between each RPC.
### TODO Tests

@ -57,7 +57,7 @@ DEFINE_string(
"half_duplex : half-duplex streaming;\n"
"jwt_token_creds: large_unary with JWT token auth;\n"
"large_unary : single request and (large) response;\n"
"long_connection: sends large_unary rpcs over a single long connection;\n"
"long_lived_channel: sends large_unary rpcs over a long-lived channel;\n"
"oauth2_auth_token: raw oauth2 access token auth;\n"
"per_rpc_creds: raw oauth2 access token on a single rpc;\n"
"ping_pong : full-duplex streaming;\n"
@ -166,8 +166,8 @@ int main(int argc, char** argv) {
FLAGS_soak_iterations);
actions["rpc_soak"] = std::bind(&grpc::testing::InteropClient::DoRpcSoakTest,
&client, FLAGS_soak_iterations);
actions["long_connection"] =
std::bind(&grpc::testing::InteropClient::DoLongConnectionTest, &client,
actions["long_lived_channel"] =
std::bind(&grpc::testing::InteropClient::DoLongLivedChannelTest, &client,
FLAGS_soak_iterations, FLAGS_iteration_interval);
UpdateActions(&actions);

@ -1052,8 +1052,8 @@ bool InteropClient::DoChannelSoakTest(int32_t soak_iterations) {
return true;
}
bool InteropClient::DoLongConnectionTest(int32_t soak_iterations,
int32_t iteration_interval) {
bool InteropClient::DoLongLivedChannelTest(int32_t soak_iterations,
int32_t iteration_interval) {
gpr_log(GPR_DEBUG, "Sending %d RPCs...", soak_iterations);
GPR_ASSERT(soak_iterations > 0);
GPR_ASSERT(iteration_interval > 0);
@ -1071,10 +1071,10 @@ bool InteropClient::DoLongConnectionTest(int32_t soak_iterations,
gpr_time_from_seconds(iteration_interval, GPR_TIMESPAN)));
}
if (num_failures == 0) {
gpr_log(GPR_DEBUG, "long_connection test done.");
gpr_log(GPR_DEBUG, "long_lived_channel test done.");
return true;
} else {
gpr_log(GPR_DEBUG, "long_connection test failed with %d rpc failures.",
gpr_log(GPR_DEBUG, "long_lived_channel test failed with %d rpc failures.",
num_failures);
return false;
}

@ -76,8 +76,8 @@ class InteropClient {
// languages
bool DoChannelSoakTest(int32_t soak_iterations);
bool DoRpcSoakTest(int32_t soak_iterations);
bool DoLongConnectionTest(int32_t soak_iterations,
int32_t iteration_interval);
bool DoLongLivedChannelTest(int32_t soak_iterations,
int32_t iteration_interval);
// Auth tests.
// username is a string containing the user email

Loading…
Cancel
Save