diff upstream_random.t @ 1427:eb1d883305ea

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 10 Jan 2019 17:42:34 +0300
parents a37d8526e691
children 144c6ce732e4
line wrap: on
line diff
--- 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 {