diff options
Diffstat (limited to 'test/test_java_application.py')
-rw-r--r-- | test/test_java_application.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_java_application.py b/test/test_java_application.py index 9d873d6b..7bd351a4 100644 --- a/test/test_java_application.py +++ b/test/test_java_application.py @@ -1085,6 +1085,7 @@ class TestJavaApplication(TestApplicationJava): self.assertEqual(self.post()['status'], 200, 'init') + body = '0123456789' * 500 (resp, sock) = self.post( headers={ 'Connection': 'keep-alive', @@ -1092,12 +1093,13 @@ class TestJavaApplication(TestApplicationJava): 'Host': 'localhost', }, start=True, - body='0123456789' * 500, + body=body, read_timeout=1, ) - self.assertEqual(resp['body'], '0123456789' * 500, 'keep-alive 1') + self.assertEqual(resp['body'], body, 'keep-alive 1') + body = '0123456789' resp = self.post( headers={ 'Connection': 'close', @@ -1105,10 +1107,10 @@ class TestJavaApplication(TestApplicationJava): 'Host': 'localhost', }, sock=sock, - body='0123456789', + body=body, ) - self.assertEqual(resp['body'], '0123456789', 'keep-alive 2') + self.assertEqual(resp['body'], body, 'keep-alive 2') def test_java_application_http_10(self): self.load('empty') |