From 29b4e4431fe43f9ac969a1cdb67478da8c5dcc1e Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Tue, 9 Apr 2019 20:59:35 +0300 Subject: Tests: speed up tests. --- test/test_perl_application.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/test_perl_application.py') diff --git a/test/test_perl_application.py b/test/test_perl_application.py index df037155..d77ac29d 100644 --- a/test/test_perl_application.py +++ b/test/test_perl_application.py @@ -196,6 +196,8 @@ class TestPerlApplication(TestApplicationPerl): def test_perl_keepalive_body(self): self.load('variables') + self.assertEqual(self.get()['status'], 200, 'init') + (resp, sock) = self.post( headers={ 'Host': 'localhost', @@ -204,6 +206,7 @@ class TestPerlApplication(TestApplicationPerl): }, start=True, body='0123456789' * 500, + read_timeout=1, ) self.assertEqual(resp['body'], '0123456789' * 500, 'keep-alive 1') -- cgit