changeset 1393:23cf08e9d2a2

Tests: fixed upstream max_conns test with ip_hash balancer.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 07 Nov 2018 14:49:43 +0300
parents dab8b5252216
children 3c101e516213
files upstream_max_conns.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/upstream_max_conns.t
+++ b/upstream_max_conns.t
@@ -101,6 +101,7 @@ http {
     upstream u_ih {
         ip_hash;
         server 127.0.0.1:8081 max_conns=1;
+        server 127.0.0.1:8082 max_conns=2;
     }
 
     server {
@@ -197,7 +198,7 @@ is(peers('/u_lc_backup_lim', 6), "$p1 $p
 
 # ip_hash balancer tests
 
-is(parallel('/u_ih', 4), "$p1: 1", 'ip_hash');
+is(parallel('/u_ih', 4), "$p1: 1, $p2: 2", 'ip_hash');
 
 ###############################################################################