[xds] Apply the slowdown factor only once to LRS load reporting period (#34042)

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
pull/34050/head
Yousuk Seung 2 years ago committed by GitHub
parent e04128ad1d
commit 4acb7d38b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      test/cpp/end2end/xds/xds_end2end_test_lib.cc

@ -280,10 +280,9 @@ XdsEnd2endTest::BalancerServerThread::BalancerServerThread(
XdsEnd2endTest* test_obj)
: ServerThread(test_obj, /*use_xds_enabled_server=*/false),
ads_service_(new AdsServiceImpl()),
lrs_service_(new LrsServiceImpl(
(GetParam().enable_load_reporting() ? 20 * grpc_test_slowdown_factor()
: 0),
{kDefaultClusterName})) {}
lrs_service_(
new LrsServiceImpl((GetParam().enable_load_reporting() ? 20 : 0),
{kDefaultClusterName})) {}
void XdsEnd2endTest::BalancerServerThread::RegisterAllServices(
ServerBuilder* builder) {

Loading…
Cancel
Save