Merge pull request #23106 from markdroth/xds_listener_removed_flakiness

Fix xds_end2end_test to not set the response state back to SENT.
pull/23116/head
Mark D. Roth 5 years ago committed by GitHub
commit 46ee6598b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      test/cpp/end2end/xds_end2end_test.cc

@ -922,7 +922,10 @@ class AdsServiceImpl : public AggregatedDiscoveryService::Service,
const SubscriptionNameMap& subscription_name_map,
const std::set<std::string>& resources_added_to_response,
DiscoveryResponse* response) {
resource_type_response_state_[resource_type].state = ResponseState::SENT;
auto& response_state = resource_type_response_state_[resource_type];
if (response_state.state == ResponseState::NOT_SENT) {
response_state.state = ResponseState::SENT;
}
response->set_type_url(resource_type);
response->set_version_info(absl::StrCat(version));
response->set_nonce(absl::StrCat(version));

Loading…
Cancel
Save