client_lb_e2e_test: fix flake in PickFirstTest.CheckStateBeforeStartWatch (#30698)

pull/30705/head
Mark D. Roth 3 years ago committed by GitHub
parent cca2dcd9e9
commit 72e76f6a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      test/cpp/end2end/client_lb_end2end_test.cc

@ -1255,6 +1255,7 @@ TEST_F(PickFirstTest, CheckStateBeforeStartWatch) {
WaitForServer(DEBUG_LOCATION, stub_1, 0);
gpr_log(GPR_INFO, "****** CHANNEL 1 CONNECTED *******");
servers_[0]->Shutdown();
EXPECT_TRUE(WaitForChannelNotReady(channel_1.get()));
// Channel 1 will receive a re-resolution containing the same server. It will
// create a new subchannel and hold a ref to it.
StartServers(1, ports);

Loading…
Cancel
Save