Tests: speed up Java tests.
This commit is contained in:
@@ -1076,6 +1076,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
|
|||||||
'X-Header': 'blah',
|
'X-Header': 'blah',
|
||||||
'Content-Type': 'text/html',
|
'Content-Type': 'text/html',
|
||||||
'Host': 'localhost',
|
'Host': 'localhost',
|
||||||
|
'Connection': 'close',
|
||||||
}
|
}
|
||||||
)['headers']['X-Reply'],
|
)['headers']['X-Reply'],
|
||||||
'blah',
|
'blah',
|
||||||
@@ -1095,6 +1096,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
|
|||||||
'X-Header': ['blah', 'blah'],
|
'X-Header': ['blah', 'blah'],
|
||||||
'Content-Type': 'text/html',
|
'Content-Type': 'text/html',
|
||||||
'Host': 'localhost',
|
'Host': 'localhost',
|
||||||
|
'Connection': 'close',
|
||||||
}
|
}
|
||||||
)['headers']
|
)['headers']
|
||||||
|
|
||||||
@@ -1130,7 +1132,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
|
|||||||
|
|
||||||
self.assertNotIn(
|
self.assertNotIn(
|
||||||
'X-Reply-0',
|
'X-Reply-0',
|
||||||
self.get(headers={})['headers'],
|
self.get(headers={}, read_timeout=1)['headers'],
|
||||||
'get header names empty',
|
'get header names empty',
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -1142,6 +1144,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
|
|||||||
'X-Header': '2',
|
'X-Header': '2',
|
||||||
'Content-Type': 'text/html',
|
'Content-Type': 'text/html',
|
||||||
'Host': 'localhost',
|
'Host': 'localhost',
|
||||||
|
'Connection': 'close',
|
||||||
}
|
}
|
||||||
)['headers']
|
)['headers']
|
||||||
|
|
||||||
@@ -1158,6 +1161,7 @@ class TestUnitJavaApplication(unit.TestUnitApplicationJava):
|
|||||||
'X-Header': date,
|
'X-Header': date,
|
||||||
'Content-Type': 'text/html',
|
'Content-Type': 'text/html',
|
||||||
'Host': 'localhost',
|
'Host': 'localhost',
|
||||||
|
'Connection': 'close',
|
||||||
}
|
}
|
||||||
)['headers']
|
)['headers']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user