aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/grpclb
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2017-11-01 19:27:52 +0100
committerGravatar GitHub <noreply@github.com>2017-11-01 19:27:52 +0100
commite1d91cfd585a0149666622b5a29547c85bfccbd2 (patch)
tree265107d90fd12c486643a7276cbfd2300c9babec /test/cpp/grpclb
parent49e2ce3b78b21909b625c61d088d0c94b04a75fc (diff)
parent4b6f3b8c4f11cc8d313ec8c28bcbcd5d4fcee28d (diff)
Merge pull request #13208 from dgquintas/lb_poll2
Make the BG poller poll very frequently in LB tests
Diffstat (limited to 'test/cpp/grpclb')
-rw-r--r--test/cpp/grpclb/grpclb_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cpp/grpclb/grpclb_test.cc b/test/cpp/grpclb/grpclb_test.cc
index e740ea513a..522bc9e0d6 100644
--- a/test/cpp/grpclb/grpclb_test.cc
+++ b/test/cpp/grpclb/grpclb_test.cc
@@ -42,6 +42,7 @@ extern "C" {
#include "src/core/lib/channel/channel_stack.h"
#include "src/core/lib/iomgr/sockaddr.h"
#include "src/core/lib/security/credentials/fake/fake_credentials.h"
+#include "src/core/lib/support/env.h"
#include "src/core/lib/support/string.h"
#include "src/core/lib/support/tmpfile.h"
#include "src/core/lib/surface/channel.h"
@@ -790,6 +791,9 @@ TEST(GrpclbTest, InvalidAddressInServerlist) {}
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
grpc_test_init(argc, argv);
+ // Make the backup poller poll very frequently in order to pick up
+ // updates from all the subchannels's FDs.
+ gpr_setenv("GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS", "1");
grpc_init();
const auto result = RUN_ALL_TESTS();
grpc_shutdown();