Tests: speed up tests.

This commit is contained in:
Andrey Zelenkov
2019-04-09 20:59:35 +03:00
parent 549f0873c2
commit 29b4e4431f
11 changed files with 59 additions and 8 deletions

View File

@@ -116,6 +116,8 @@ class TestPHPApplication(TestApplicationPHP):
def test_php_application_keepalive_body(self):
self.load('mirror')
self.assertEqual(self.get()['status'], 200, 'init')
(resp, sock) = self.post(
headers={
'Host': 'localhost',
@@ -124,6 +126,7 @@ class TestPHPApplication(TestApplicationPHP):
},
start=True,
body='0123456789' * 500,
read_timeout=1,
)
self.assertEqual(resp['body'], '0123456789' * 500, 'keep-alive 1')