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

@@ -321,6 +321,8 @@ class TestRubyApplication(TestApplicationRuby):
def test_ruby_keepalive_body(self):
self.load('mirror')
self.assertEqual(self.get()['status'], 200, 'init')
(resp, sock) = self.post(
headers={
'Host': 'localhost',
@@ -329,6 +331,7 @@ class TestRubyApplication(TestApplicationRuby):
},
start=True,
body='0123456789' * 500,
read_timeout=1,
)
self.assertEqual(resp['body'], '0123456789' * 500, 'keep-alive 1')