aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2017-05-04 08:05:40 -0700
committerGravatar GitHub <noreply@github.com>2017-05-04 08:05:40 -0700
commit86b9473690bd8fe668451d088232d7e826efe218 (patch)
tree6ac46a88fcedac469d303ea6d1d7c817b3ff5e2c /test
parent60093aba48634a017d557e421a08ab51458815f5 (diff)
parent64d922ae87e87c45a39d3681afd8fa696ec143e2 (diff)
Merge pull request #10980 from markdroth/grpclb_deadline_fix
Make sure we set deadline for the LB call even without a pick.
Diffstat (limited to 'test')
-rw-r--r--test/cpp/end2end/grpclb_end2end_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cpp/end2end/grpclb_end2end_test.cc b/test/cpp/end2end/grpclb_end2end_test.cc
index 30e1a1e0c9..8417f1a99c 100644
--- a/test/cpp/end2end/grpclb_end2end_test.cc
+++ b/test/cpp/end2end/grpclb_end2end_test.cc
@@ -469,6 +469,8 @@ class SingleBalancerTest : public GrpclbEnd2endTest {
TEST_F(SingleBalancerTest, Vanilla) {
ScheduleResponseForBalancer(
0, BalancerServiceImpl::BuildResponseForBackends(GetBackendPorts()), 0);
+ // Make sure that trying to connect works without a call.
+ channel_->GetState(true /* try_to_connect */);
// Start servers and send 100 RPCs per server.
const auto& statuses_and_responses = SendRpc(kMessage_, 100 * num_backends_);