|
|
|
@ -36,6 +36,7 @@ |
|
|
|
|
extern "C" { |
|
|
|
|
#include "src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h" |
|
|
|
|
#include "src/core/lib/iomgr/sockaddr.h" |
|
|
|
|
#include "src/core/lib/support/env.h" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#include "test/core/util/port.h" |
|
|
|
@ -74,9 +75,9 @@ extern "C" { |
|
|
|
|
|
|
|
|
|
using std::chrono::system_clock; |
|
|
|
|
|
|
|
|
|
using grpc::lb::v1::LoadBalancer; |
|
|
|
|
using grpc::lb::v1::LoadBalanceRequest; |
|
|
|
|
using grpc::lb::v1::LoadBalanceResponse; |
|
|
|
|
using grpc::lb::v1::LoadBalancer; |
|
|
|
|
|
|
|
|
|
namespace grpc { |
|
|
|
|
namespace testing { |
|
|
|
@ -332,7 +333,11 @@ class GrpclbEnd2endTest : public ::testing::Test { |
|
|
|
|
num_backends_(num_backends), |
|
|
|
|
num_balancers_(num_balancers), |
|
|
|
|
client_load_reporting_interval_seconds_( |
|
|
|
|
client_load_reporting_interval_seconds) {} |
|
|
|
|
client_load_reporting_interval_seconds) { |
|
|
|
|
// 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"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SetUp() override { |
|
|
|
|
response_generator_ = grpc_fake_resolver_response_generator_create(); |
|
|
|
|