Tests: read_timeout option introduced.

Also, increased default select() timeout from 1s to 5s.
This commit is contained in:
Andrey Zelenkov
2019-02-27 19:43:14 +03:00
parent 4de2c8b567
commit bd77c9a4d2
3 changed files with 16 additions and 13 deletions

View File

@@ -226,7 +226,7 @@ class TestUnitPythonProcman(unit.TestUnitApplicationPython):
(resp, sock) = self.get(headers={
'Host': 'localhost',
'Connection': 'keep-alive'
}, start=True)
}, start=True, read_timeout=1)
self.assertEqual(len(self.pids_for_process()), 1,
'keepalive connection 1')