Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 5dac9a8

Browse files
committed
Fix broken unit tests
1 parent 0741b55 commit 5dac9a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_hyper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,9 +1354,9 @@ def test_connection_sends_rst_frame_if_frame_size_too_large(self):
13541354
# Receive oversized frame on the client side.
13551355
# Create huge data frame that exceeds the FRAME_MAX_LEN value in order
13561356
# 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
13581358
# 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)])
13601360
sock.buffer = BytesIO(d.serialize())
13611361

13621362
frames = []
@@ -1381,7 +1381,7 @@ def send_rst_frame(stream_id, error_code):
13811381
def test_connection_stream_is_removed_when_receiving_out_of_range_frame(self):
13821382
sock = DummySocket()
13831383
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)])
13851385
sock.buffer = BytesIO(d.serialize())
13861386

13871387
c = HTTP20Connection('www.google.com')

0 commit comments

Comments
 (0)