diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2022-10-11 13:49:10 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2022-10-11 13:49:10 +0100 |
commit | 8e1e0471914b39da0634a23c4231ce98021a4cf7 (patch) | |
tree | 12560d3c455b54bda388c36c04eb61f8540d0680 /test/test_upstreams_rr.py | |
parent | 8d976cac522d5223fbe4a4360368a351a197ddbf (diff) | |
download | unit-8e1e0471914b39da0634a23c4231ce98021a4cf7.tar.gz unit-8e1e0471914b39da0634a23c4231ce98021a4cf7.tar.bz2 |
Tests: don't try to return response when "no_recv" is True.
Diffstat (limited to '')
-rw-r--r-- | test/test_upstreams_rr.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test_upstreams_rr.py b/test/test_upstreams_rr.py index dd64e1d9..71af3f5d 100644 --- a/test/test_upstreams_rr.py +++ b/test/test_upstreams_rr.py @@ -290,14 +290,13 @@ Connection: close socks = [] for i in range(req): delay = 1 if i % 5 == 0 else 0 - _, sock = self.get( + sock = self.get( headers={ 'Host': 'localhost', 'Content-Length': '0', 'X-Delay': str(delay), 'Connection': 'close', }, - start=True, no_recv=True, ) socks.append(sock) @@ -320,17 +319,16 @@ Connection: close socks2 = [] for _ in range(conns): - _, sock = self.get(start=True, no_recv=True) + sock = self.get(no_recv=True) socks.append(sock) - _, sock2 = self.http( + sock2 = self.http( b"""POST / HTTP/1.1 Host: localhost Content-Length: 10 Connection: close """, - start=True, no_recv=True, raw=True, ) |