Merge pull request #14497 from AspirinSJL/fix_rpc_failure_flake

Add warmup before first batch in UpdateBalancers tests
pull/14529/head
Juanli Shen 7 years ago committed by GitHub
commit 5739d34c46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      test/cpp/end2end/grpclb_end2end_test.cc

@ -892,7 +892,10 @@ TEST_F(UpdatesTest, UpdateBalancers) {
ScheduleResponseForBalancer(
1, BalancerServiceImpl::BuildResponseForBackends(second_backend, {}), 0);
// Start servers and send 10 RPCs per server.
// Wait until the first backend is ready.
WaitForBackend(0);
// Send 10 requests.
gpr_log(GPR_INFO, "========= BEFORE FIRST BATCH ==========");
CheckRpcSendOk(10);
gpr_log(GPR_INFO, "========= DONE WITH FIRST BATCH ==========");
@ -954,7 +957,10 @@ TEST_F(UpdatesTest, UpdateBalancersRepeated) {
ScheduleResponseForBalancer(
1, BalancerServiceImpl::BuildResponseForBackends(second_backend, {}), 0);
// Start servers and send 10 RPCs per server.
// Wait until the first backend is ready.
WaitForBackend(0);
// Send 10 requests.
gpr_log(GPR_INFO, "========= BEFORE FIRST BATCH ==========");
CheckRpcSendOk(10);
gpr_log(GPR_INFO, "========= DONE WITH FIRST BATCH ==========");

Loading…
Cancel
Save