summaryrefslogtreecommitdiffhomepage
path: root/test/test_java_application.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-04-09 20:59:35 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-04-09 20:59:35 +0300
commit29b4e4431fe43f9ac969a1cdb67478da8c5dcc1e (patch)
treef1b8944daa883776d672e3ffb7d37009f0004462 /test/test_java_application.py
parent549f0873c2beed9517fb4006e1f0a63e0019abb3 (diff)
downloadunit-29b4e4431fe43f9ac969a1cdb67478da8c5dcc1e.tar.gz
unit-29b4e4431fe43f9ac969a1cdb67478da8c5dcc1e.tar.bz2
Tests: speed up tests.
Diffstat (limited to 'test/test_java_application.py')
-rw-r--r--test/test_java_application.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_java_application.py b/test/test_java_application.py
index 18538f57..7ccaadd5 100644
--- a/test/test_java_application.py
+++ b/test/test_java_application.py
@@ -1031,6 +1031,8 @@ class TestJavaApplication(TestApplicationJava):
def test_java_application_keepalive_body(self):
self.load('mirror')
+ self.assertEqual(self.post()['status'], 200, 'init')
+
(resp, sock) = self.post(
headers={
'Connection': 'keep-alive',
@@ -1039,6 +1041,7 @@ class TestJavaApplication(TestApplicationJava):
},
start=True,
body='0123456789' * 500,
+ read_timeout=1,
)
self.assertEqual(resp['body'], '0123456789' * 500, 'keep-alive 1')
@@ -1128,6 +1131,8 @@ class TestJavaApplication(TestApplicationJava):
def test_java_application_get_header_names_empty(self):
self.load('get_header_names')
+ self.assertEqual(self.get()['status'], 200, 'init')
+
self.assertNotIn(
'X-Reply-0',
self.get(headers={}, read_timeout=1)['headers'],