Wait longer before sending the drop update

pull/19912/head
Juanli Shen 6 years ago
parent 730b4f73f4
commit 8d101f1071
  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