From 103f4c2f1e8bfa9db5e08d6b4985d277864f2691 Mon Sep 17 00:00:00 2001 From: Cheng-Yu Chung Date: Tue, 16 Aug 2022 15:44:48 -0400 Subject: [PATCH] [fixit] Increase timeout value for XDS Core End2End Test (#30593) --- test/cpp/end2end/xds/xds_core_end2end_test.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/cpp/end2end/xds/xds_core_end2end_test.cc b/test/cpp/end2end/xds/xds_core_end2end_test.cc index 106759da906..23b0cb7c59c 100644 --- a/test/cpp/end2end/xds/xds_core_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_core_end2end_test.cc @@ -244,8 +244,7 @@ TEST_P(GlobalXdsClientTest, MultipleChannelsShareXdsClient) { // Create second channel and tell it to connect to kNewServerName. auto channel2 = CreateChannel(/*failover_timeout_ms=*/0, kNewServerName); channel2->GetState(/*try_to_connect=*/true); - ASSERT_TRUE( - channel2->WaitForConnected(grpc_timeout_milliseconds_to_deadline(100))); + ASSERT_TRUE(channel2->WaitForConnected(grpc_timeout_seconds_to_deadline(1))); // Make sure there's only one client connected. EXPECT_EQ(1UL, balancer_->ads_service()->clients().size()); } @@ -269,8 +268,7 @@ TEST_P( // Create second channel and tell it to connect to kNewServerName. auto channel2 = CreateChannel(/*failover_timeout_ms=*/0, kNewServerName); channel2->GetState(/*try_to_connect=*/true); - ASSERT_TRUE( - channel2->WaitForConnected(grpc_timeout_milliseconds_to_deadline(100))); + ASSERT_TRUE(channel2->WaitForConnected(grpc_timeout_seconds_to_deadline(1))); // Now, destroy the new channel, send an EDS update to use a different backend // and test that the channel switches to that backend. channel2.reset();