diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-11-01 11:49:00 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-11-01 11:49:00 -0700 |
commit | 8bd88c459a338bc217332a126c454ea84758c671 (patch) | |
tree | d590294fc800f1e6bf07f45bc4183aec269ce79a /test/cpp/grpclb | |
parent | b9306327958ab7a46d5b25dd2c64da9e12778026 (diff) | |
parent | e1d91cfd585a0149666622b5a29547c85bfccbd2 (diff) |
Merge master
Diffstat (limited to 'test/cpp/grpclb')
-rw-r--r-- | test/cpp/grpclb/grpclb_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cpp/grpclb/grpclb_test.cc b/test/cpp/grpclb/grpclb_test.cc index 0fadc256ec..a4b364417d 100644 --- a/test/cpp/grpclb/grpclb_test.cc +++ b/test/cpp/grpclb/grpclb_test.cc @@ -42,6 +42,7 @@ #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" @@ -789,6 +790,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(); |