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

@@ -42,7 +42,6 @@ Connection: close
b"""GET / HTTP/1.1
""",
start=True,
read_timeout=1,
raw=True,
no_recv=True,
)
@@ -54,7 +53,6 @@ Connection: close
""",
start=True,
sock=sock,
read_timeout=1,
raw=True,
no_recv=True,
)
@@ -189,6 +187,8 @@ Connection: close
def test_settings_idle_timeout(self):
self.load('empty')
self.assertEqual(self.get()['status'], 200, 'init')
self.conf({'http': {'idle_timeout': 2}}, 'settings')
(resp, sock) = self.get(