Merge pull request #19912 from AspirinSJL/fix_drop

Wait longer before sending the drop update
pull/19916/head
Juanli Shen 5 years ago committed by GitHub
commit 2bcf98e36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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;

Loading…
Cancel
Save