From ccf20e254f02bce294e1b9a091c88662188fe62a Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Thu, 16 Jan 2020 16:08:54 -0800 Subject: [PATCH] Fix xds_end2end_test --- test/cpp/end2end/xds_end2end_test.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cpp/end2end/xds_end2end_test.cc b/test/cpp/end2end/xds_end2end_test.cc index 847dec9ce66f1..8b855c5fe4bdb 100644 --- a/test/cpp/end2end/xds_end2end_test.cc +++ b/test/cpp/end2end/xds_end2end_test.cc @@ -1341,7 +1341,7 @@ using CdsTest = BasicTest; TEST_P(CdsTest, Vanilla) { SetNextResolution({}); SetNextResolutionForLbChannelAllBalancers(); - SendRpc(); + CheckRpcSendOk(); EXPECT_EQ(balancers_[0]->ads_service()->cds_response_state(), AdsServiceImpl::ACKED); } @@ -1355,7 +1355,7 @@ TEST_P(CdsTest, WrongClusterType) { {{"application_target_name", std::move(cluster)}}); SetNextResolution({}); SetNextResolutionForLbChannelAllBalancers(); - SendRpc(); + CheckRpcSendOk(); EXPECT_EQ(balancers_[0]->ads_service()->cds_response_state(), AdsServiceImpl::NACKED); } @@ -1369,7 +1369,7 @@ TEST_P(CdsTest, WrongEdsConfig) { {{"application_target_name", std::move(cluster)}}); SetNextResolution({}); SetNextResolutionForLbChannelAllBalancers(); - SendRpc(); + CheckRpcSendOk(); EXPECT_EQ(balancers_[0]->ads_service()->cds_response_state(), AdsServiceImpl::NACKED); } @@ -1383,7 +1383,7 @@ TEST_P(CdsTest, WrongLbPolicy) { {{"application_target_name", std::move(cluster)}}); SetNextResolution({}); SetNextResolutionForLbChannelAllBalancers(); - SendRpc(); + CheckRpcSendOk(); EXPECT_EQ(balancers_[0]->ads_service()->cds_response_state(), AdsServiceImpl::NACKED); } @@ -1397,7 +1397,7 @@ TEST_P(CdsTest, WrongLrsServer) { {{"application_target_name", std::move(cluster)}}); SetNextResolution({}); SetNextResolutionForLbChannelAllBalancers(); - SendRpc(); + CheckRpcSendOk(); EXPECT_EQ(balancers_[0]->ads_service()->cds_response_state(), AdsServiceImpl::NACKED); }