Skip to content

Commit 3ef6792

Browse files
committed
Tests: fixed upstream max_conns test with ip_hash balancer.
1 parent 6ec20ab commit 3ef6792

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

upstream_max_conns.t

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ http {
101101
upstream u_ih {
102102
ip_hash;
103103
server 127.0.0.1:8081 max_conns=1;
104+
server 127.0.0.1:8082 max_conns=2;
104105
}
105106
106107
server {
@@ -197,7 +198,7 @@ is(peers('/u_lc_backup_lim', 6), "$p1 $p1 $p2 $p2 $p2 ",
197198

198199
# ip_hash balancer tests
199200

200-
is(parallel('/u_ih', 4), "$p1: 1", 'ip_hash');
201+
is(parallel('/u_ih', 4), "$p1: 1, $p2: 2", 'ip_hash');
201202

202203
###############################################################################
203204

0 commit comments

Comments
 (0)