xds_e2e_test_lib: increase default timeouts in test framework (#30756)

* e2e tests: add test scaling factor to durations in channel args

* apply test scaling factor when encoding durations in xDS protos

* apply scaling factor in fixed timeout in WaitForNack()

* fix overflow

* clang-format

* adjust timeouts in fault injection tests

* add missing slowdown factor

* clang-format

* xds_e2e_test_lib: increase default timeouts in test framework
pull/30765/head
Mark D. Roth 2 years ago committed by GitHub
parent b6a53145e9
commit 5f7096614a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      test/cpp/end2end/xds/xds_end2end_test_lib.h

@ -717,11 +717,8 @@ class XdsEnd2endTest : public ::testing::TestWithParam<XdsTestType> {
struct RpcOptions {
RpcService service = SERVICE_ECHO;
RpcMethod method = METHOD_ECHO;
// Dev note: If a timeout or Deadline Exceeded error is occurring in an XDS
// end2end test, consider changing that test's timeout instead of this
// global default.
// Will be multiplied by grpc_test_slowdown_factor().
int timeout_ms = 1000;
int timeout_ms = 5000;
bool wait_for_ready = false;
std::vector<std::pair<std::string, std::string>> metadata;
// These options are used by the backend service impl.
@ -823,7 +820,7 @@ class XdsEnd2endTest : public ::testing::TestWithParam<XdsTestType> {
};
void SendRpcsUntil(const grpc_core::DebugLocation& debug_location,
std::function<bool(const RpcResult&)> continue_predicate,
int timeout_ms = 5000,
int timeout_ms = 15000,
const RpcOptions& rpc_options = RpcOptions());
// Sends the specified number of RPCs and fails if the RPC fails.
@ -891,7 +888,7 @@ class XdsEnd2endTest : public ::testing::TestWithParam<XdsTestType> {
bool reset_counters = true;
// How long to wait for the backend(s) to see requests.
// Will be multiplied by grpc_test_slowdown_factor().
int timeout_ms = 5000;
int timeout_ms = 15000;
WaitForBackendOptions() {}

Loading…
Cancel
Save