deflake server_load_reporting_end2end_test (#32434)

This test is flaky only with iomgr, this fix will likely fix this.

<!--

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/32457/head
Yousuk Seung 2 years ago committed by GitHub
parent e41e41e209
commit 420180c6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      test/cpp/end2end/server_load_reporting_end2end_test.cc

@ -30,6 +30,7 @@
#include <grpcpp/ext/server_load_reporting.h>
#include <grpcpp/server_builder.h>
#include "src/core/ext/filters/client_channel/backup_poller.h"
#include "src/core/lib/gprpp/crash.h"
#include "src/proto/grpc/lb/v1/load_reporter.grpc.pb.h"
#include "src/proto/grpc/testing/echo.grpc.pb.h"
@ -200,5 +201,8 @@ TEST_F(ServerLoadReportingEnd2endTest, BasicReport) {
int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(&argc, argv);
::testing::InitGoogleTest(&argc, argv);
// Make the backup poller poll very frequently in order to pick up
// updates from all the subchannels's FDs.
GPR_GLOBAL_CONFIG_SET(grpc_client_channel_backup_poll_interval_ms, 1);
return RUN_ALL_TESTS();
}

Loading…
Cancel
Save