Skip to content

Commit

Permalink
Merge pull request grpc#19912 from AspirinSJL/fix_drop
Browse files Browse the repository at this point in the history
Wait longer before sending the drop update
  • Loading branch information
AspirinSJL committed Aug 12, 2019
2 parents 5bf40ae + 8d101f1 commit 2bcf98e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/cpp/end2end/xds_end2end_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bcf98e

Please sign in to comment.