# HG changeset patch # User Sergey Kandaurov # Date 1547131354 -10800 # Node ID eb1d883305ea24a19313f44d675a493e715b4c5f # Parent a8d18c2852abaeb905351c8a318728678e3b405b Tests: avoid edge cases in upstream random two test. Unavailable servers contribute to the number of attempts, if selected, before the balancer would fall back to the default round-robin method. This means that it's quite possible to get server with more connections. To facilitate with selecting two alive servers, down server was removed from the upstream configuration at the cost of slightly worse coverage. diff --git a/upstream_random.t b/upstream_random.t --- a/upstream_random.t +++ b/upstream_random.t @@ -49,7 +49,6 @@ http { random two; server 127.0.0.1:8081; server 127.0.0.1:8082; - server 127.0.0.1:8083 down; } upstream w {