summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-03-26 23:39:15 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-03-26 23:39:15 +0300
commit06b9a11494561e309114266bfe3bb001352b596c (patch)
tree1bc47002a1a41bac9a1ba5f237dc001d9b3ef78c /test
parent281899fcef10eaf815d90958d49243c5060ffac0 (diff)
downloadunit-06b9a11494561e309114266bfe3bb001352b596c.tar.gz
unit-06b9a11494561e309114266bfe3bb001352b596c.tar.bz2
Tests: speed up Java tests.
Diffstat (limited to '')
-rw-r--r--test/test_java_application.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_java_application.py b/test/test_java_application.py
index 05e4aadd..30902c1b 100644
--- a/test/test_java_application.py
+++ b/test/test_java_application.py
@@ -1076,6 +1076,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
'X-Header': 'blah',
'Content-Type': 'text/html',
'Host': 'localhost',
+ 'Connection': 'close',
}
)['headers']['X-Reply'],
'blah',
@@ -1095,6 +1096,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
'X-Header': ['blah', 'blah'],
'Content-Type': 'text/html',
'Host': 'localhost',
+ 'Connection': 'close',
}
)['headers']
@@ -1130,7 +1132,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
self.assertNotIn(
'X-Reply-0',
- self.get(headers={})['headers'],
+ self.get(headers={}, read_timeout=1)['headers'],
'get header names empty',
)
@@ -1142,6 +1144,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
'X-Header': '2',
'Content-Type': 'text/html',
'Host': 'localhost',
+ 'Connection': 'close',
}
)['headers']
@@ -1158,6 +1161,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
'X-Header': date,
'Content-Type': 'text/html',
'Host': 'localhost',
+ 'Connection': 'close',
}
)['headers']