Skip to content

Commit

Permalink
test: fix slow test from previous commit (#216)
Browse files Browse the repository at this point in the history
This test is still too slow for what it is doing but this makes it
acceptable for now.
  • Loading branch information
mattklein123 authored Nov 13, 2016
1 parent 41dd845 commit 58edd76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/common/upstream/load_balancer_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,27 +264,27 @@ TEST_F(RoundRobinLoadBalancerTest, LowPrecisionForDistribution) {
std::vector<HostPtr> current(45000);

for (int i = 0; i < 45000; ++i) {
current[i] = newTestHost(Upstream::MockCluster{}, "tcp://127.0.0.1:0");
current[i] = newTestHost(cluster_, "tcp://127.0.0.1:0");
}
local_hosts_per_zone->push_back(current);

current.resize(55000);
for (int i = 0; i < 55000; ++i) {
current[i] = newTestHost(Upstream::MockCluster{}, "tcp://127.0.0.1:0");
current[i] = newTestHost(cluster_, "tcp://127.0.0.1:0");
}
local_hosts_per_zone->push_back(current);
local_cluster_hosts_->updateHosts(local_hosts, local_hosts, local_hosts_per_zone,
local_hosts_per_zone, empty_host_vector_, empty_host_vector_);

current.resize(44999);
for (int i = 0; i < 44999; ++i) {
current[i] = newTestHost(Upstream::MockCluster{}, "tcp://127.0.0.1:0");
current[i] = newTestHost(cluster_, "tcp://127.0.0.1:0");
}
upstream_hosts_per_zone->push_back(current);

current.resize(55001);
for (int i = 0; i < 55001; ++i) {
current[i] = newTestHost(Upstream::MockCluster{}, "tcp://127.0.0.1:0");
current[i] = newTestHost(cluster_, "tcp://127.0.0.1:0");
}
upstream_hosts_per_zone->push_back(current);

Expand Down

0 comments on commit 58edd76

Please sign in to comment.