summaryrefslogtreecommitdiffhomepage
path: root/test/test_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py25
1 files changed, 7 insertions, 18 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index b0d471e4..ede91fd6 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -185,9 +185,8 @@ Content-Length: 10
socks = []
for i in range(10):
- _, sock = self.post_http10(
+ sock = self.post_http10(
body=payload + str(i),
- start=True,
no_recv=True,
read_buffer_size=buff_size,
)
@@ -248,9 +247,7 @@ Content-Length: 10
), 'custom header 5'
def test_proxy_fragmented(self):
- _, sock = self.http(
- b"""GET / HTT""", raw=True, start=True, no_recv=True
- )
+ sock = self.http(b"""GET / HTT""", raw=True, no_recv=True)
time.sleep(1)
@@ -266,9 +263,7 @@ Content-Length: 10
sock.close()
def test_proxy_fragmented_close(self):
- _, sock = self.http(
- b"""GET / HTT""", raw=True, start=True, no_recv=True
- )
+ sock = self.http(b"""GET / HTT""", raw=True, no_recv=True)
time.sleep(1)
@@ -277,9 +272,7 @@ Content-Length: 10
sock.close()
def test_proxy_fragmented_body(self):
- _, sock = self.http(
- b"""GET / HTT""", raw=True, start=True, no_recv=True
- )
+ sock = self.http(b"""GET / HTT""", raw=True, no_recv=True)
time.sleep(1)
@@ -306,9 +299,7 @@ Content-Length: 10
assert resp['body'] == "X" * 30000, 'body'
def test_proxy_fragmented_body_close(self):
- _, sock = self.http(
- b"""GET / HTT""", raw=True, start=True, no_recv=True
- )
+ sock = self.http(b"""GET / HTT""", raw=True, no_recv=True)
time.sleep(1)
@@ -398,7 +389,7 @@ Content-Length: 10
{"pass": "applications/delayed"}, 'listeners/*:7081'
), 'delayed configure'
- _, sock = self.post_http10(
+ sock = self.post_http10(
headers={
'Host': 'localhost',
'Content-Length': '10000',
@@ -406,14 +397,13 @@ Content-Length: 10
'X-Delay': '1',
},
body='0123456789' * 1000,
- start=True,
no_recv=True,
)
assert re.search('200 OK', sock.recv(100).decode()), 'first'
sock.close()
- _, sock = self.post_http10(
+ sock = self.post_http10(
headers={
'Host': 'localhost',
'Content-Length': '10000',
@@ -421,7 +411,6 @@ Content-Length: 10
'X-Delay': '1',
},
body='0123456789' * 1000,
- start=True,
no_recv=True,
)