xds_routing_e2e_test: fix XdsRetryPolicyMaxBackOff flake (#30649)

pull/30667/head
Mark D. Roth 3 years ago committed by GitHub
parent 0ba7d3a536
commit fedba4654d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      test/cpp/end2end/xds/xds_routing_end2end_test.cc

@ -2289,6 +2289,10 @@ TEST_P(LdsRdsTest, XdsRetryPolicyMaxBackOff) {
max_interval->set_seconds(1 * grpc_test_slowdown_factor());
max_interval->set_nanos(0);
SetRouteConfiguration(balancer_.get(), new_route_config);
// Send an initial RPC to make sure we get connected (we don't want
// the channel startup time to affect the retry timing).
CheckRpcSendOk(DEBUG_LOCATION);
ResetBackendCounters();
// We expect 2 retry before the RPC times out with DEADLINE_EXCEEDED.
CheckRpcSendFailure(
DEBUG_LOCATION, StatusCode::DEADLINE_EXCEEDED, "Deadline Exceeded",

Loading…
Cancel
Save