diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-04-09 20:59:35 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-04-09 20:59:35 +0300 |
commit | 29b4e4431fe43f9ac969a1cdb67478da8c5dcc1e (patch) | |
tree | f1b8944daa883776d672e3ffb7d37009f0004462 /test/test_go_application.py | |
parent | 549f0873c2beed9517fb4006e1f0a63e0019abb3 (diff) | |
download | unit-29b4e4431fe43f9ac969a1cdb67478da8c5dcc1e.tar.gz unit-29b4e4431fe43f9ac969a1cdb67478da8c5dcc1e.tar.bz2 |
Tests: speed up tests.
Diffstat (limited to 'test/test_go_application.py')
-rw-r--r-- | test/test_go_application.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_go_application.py b/test/test_go_application.py index 0f66a730..373fcdf3 100644 --- a/test/test_go_application.py +++ b/test/test_go_application.py @@ -88,6 +88,8 @@ class TestGoApplication(TestApplicationGo): def test_go_keepalive_body(self): self.load('mirror') + self.assertEqual(self.get()['status'], 200, 'init') + (resp, sock) = self.post( headers={ 'Host': 'localhost', @@ -96,6 +98,7 @@ class TestGoApplication(TestApplicationGo): }, start=True, body='0123456789' * 500, + read_timeout=1, ) self.assertEqual(resp['body'], '0123456789' * 500, 'keep-alive 1') |