This repository was archived by the owner on Jan 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1354,9 +1354,9 @@ def test_connection_sends_rst_frame_if_frame_size_too_large(self):
1354
1354
# Receive oversized frame on the client side.
1355
1355
# Create huge data frame that exceeds the FRAME_MAX_LEN value in order
1356
1356
# to trigger the reset frame with error code 6 (FRAME_SIZE_ERROR).
1357
- # FRAME_MAX_LEN is a constant value for the hyper client and cannot
1357
+ # FRAME_MAX_LEN is a constant value for the hyper client and cannot
1358
1358
# be updated as of now.
1359
- d .data = b'' .join ([b"hi there client" for x in range (40 )])
1359
+ d .data = b'' .join ([b"hi there client" for x in range (1500 )])
1360
1360
sock .buffer = BytesIO (d .serialize ())
1361
1361
1362
1362
frames = []
@@ -1381,7 +1381,7 @@ def send_rst_frame(stream_id, error_code):
1381
1381
def test_connection_stream_is_removed_when_receiving_out_of_range_frame (self ):
1382
1382
sock = DummySocket ()
1383
1383
d = DataFrame (1 )
1384
- d .data = b'' .join ([b"hi there sir" for x in range (40 )])
1384
+ d .data = b'' .join ([b"hi there sir" for x in range (1500 )])
1385
1385
sock .buffer = BytesIO (d .serialize ())
1386
1386
1387
1387
c = HTTP20Connection ('www.google.com' )
You can’t perform that action at this time.
0 commit comments