aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/end2end
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2018-12-07 08:38:29 -0800
committerGravatar Mark D. Roth <roth@google.com>2018-12-07 08:38:29 -0800
commita6a21d1c64b610805c42ca2218d6d95313cb5329 (patch)
tree5ad3610450f91a08bbde17f2fe4c495b8e976c48 /test/cpp/end2end
parent3dd24ea9789fcc455842b9582102f8c261e0bb1c (diff)
more code review changes
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r--test/cpp/end2end/client_lb_end2end_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/cpp/end2end/client_lb_end2end_test.cc b/test/cpp/end2end/client_lb_end2end_test.cc
index f60f110c5f..40b657f105 100644
--- a/test/cpp/end2end/client_lb_end2end_test.cc
+++ b/test/cpp/end2end/client_lb_end2end_test.cc
@@ -522,13 +522,15 @@ TEST_F(ClientLbEnd2endTest,
EXPECT_FALSE(
channel->WaitForConnected(grpc_timeout_milliseconds_to_deadline(10)));
// Reset connection backoff.
+ // Note that the time at which the third attempt will be started is
+ // actually computed at this point, so we record the start time here.
gpr_log(GPR_INFO, "=== RESETTING BACKOFF");
+ const gpr_timespec t0 = gpr_now(GPR_CLOCK_MONOTONIC);
experimental::ChannelResetConnectionBackoff(channel.get());
// Trigger a second connection attempt. This should also fail
// ~immediately, but the retry should be scheduled for
// kInitialBackOffMs instead of applying the multiplier.
gpr_log(GPR_INFO, "=== POLLING FOR SECOND CONNECTION ATTEMPT");
- const gpr_timespec t0 = gpr_now(GPR_CLOCK_MONOTONIC);
EXPECT_FALSE(
channel->WaitForConnected(grpc_timeout_milliseconds_to_deadline(10)));
// Bring up a server on the chosen port.