summaryrefslogtreecommitdiff
blob: 5ee43f7367c7b9597674db8341ffdc0932678ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
https://bitbucket.org/nikratio/python-dugong/issue/14/test_send_timeout-ssl-failure-in-latest
diff --git a/test/test_dugong.py b/test/test_dugong.py
--- a/test/test_dugong.py
+++ b/test/test_dugong.py
@@ -726,11 +728,11 @@
 
     # We don't know how much data can be buffered, so we
     # claim to send a lot and do so in a loop.
-    len_ = 1024**3
+    len_ = 10 * 1024**3
     conn.send_request('PUT', '/recv_something', body=BodyFollowing(len_))
     with pytest.raises(dugong.ConnectionTimedOut):
         while len_ > 0:
-            conn.write(b'x' * min(len_, 16*1024))
+            conn.write(b'x' * min(len_, 640*1024))
 
 
 DUMMY_DATA = ','.join(str(x) for x in range(10000)).encode()