From 8d101f1071fe1e25f41d89e06be54f55ed7fe7a0 Mon Sep 17 00:00:00 2001 From: Juanli Shen Date: Mon, 12 Aug 2019 12:35:58 -0700 Subject: [PATCH] Wait longer before sending the drop update --- test/cpp/end2end/xds_end2end_test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/cpp/end2end/xds_end2end_test.cc b/test/cpp/end2end/xds_end2end_test.cc index 5d114c0ef2b..94f4af0b173 100644 --- a/test/cpp/end2end/xds_end2end_test.cc +++ b/test/cpp/end2end/xds_end2end_test.cc @@ -1190,13 +1190,16 @@ TEST_F(SingleBalancerTest, DropUpdate) { {{kLbDropType, kDropPerMillionForLb}}), 0); // The second EDS response contains two drop categories. + // TODO(juanlishen): Change the EDS response sending to deterministic style + // (e.g., by using condition variable) so that we can shorten the test + // duration. ScheduleResponseForBalancer( 0, EdsServiceImpl::BuildResponse( GetBackendPortsInGroups(), {{kLbDropType, kDropPerMillionForLb}, {kThrottleDropType, kDropPerMillionForThrottle}}), - 5000); + 10000); WaitForAllBackends(); // Send kNumRpcs RPCs and count the drops. size_t num_drops = 0;