Skip to content

Commit d0637bf

Browse files
martin-suchajul-stas
authored andcommitted
Use count argument in run_policy
This argument was not used anywhere, it worked by chance since it had the same value everywhere.
1 parent 03b8ed5 commit d0637bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/src/unit/tests/test_load_balancing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ typedef Map<Address, int> QueryCounts;
9393

9494
QueryCounts run_policy(LoadBalancingPolicy& policy, int count) {
9595
QueryCounts counts;
96-
for (int i = 0; i < 12; ++i) {
96+
for (int i = 0; i < count; ++i) {
9797
ScopedPtr<QueryPlan> qp(policy.new_query_plan("ks", NULL, NULL));
9898
Host::Ptr host(qp->compute_next());
9999
if (host) {

0 commit comments

Comments
 (0)