# HG changeset patch # User Sergey Kandaurov # Date 1430312038 -10800 # Node ID 4296379213c82ea3519544d05f91d3dee792cc16 # Parent ff49e1c00b35fb28f47677e9ddd0558af537dc96 Tests: refactored stream least_conn tests similar to e4ff43e00d84. diff --git a/stream_upstream_least_conn.t b/stream_upstream_least_conn.t --- a/stream_upstream_least_conn.t +++ b/stream_upstream_least_conn.t @@ -59,7 +59,17 @@ EOF ############################################################################### is(many('.', 10), '8081: 5, 8082: 5', 'balanced'); -is(parallel('w', 10), '8081: 1, 8082: 9', 'least_conn'); + +my @sockets; +for (1 .. 2) { + my $s = stream_connect(); + stream_write($s, 'w'); + push @sockets, $s; +} + +select undef, undef, undef, 0.2; + +is(many('.', 10), '8082: 10', 'least_conn'); ###############################################################################