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

Commit

Permalink
Fix broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Jun 30, 2015
1 parent 0741b55 commit 5dac9a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,9 +1354,9 @@ def test_connection_sends_rst_frame_if_frame_size_too_large(self):
# Receive oversized frame on the client side.
# Create huge data frame that exceeds the FRAME_MAX_LEN value in order
# to trigger the reset frame with error code 6 (FRAME_SIZE_ERROR).
# FRAME_MAX_LEN is a constant value for the hyper client and cannot
# FRAME_MAX_LEN is a constant value for the hyper client and cannot
# be updated as of now.
d.data = b''.join([b"hi there client" for x in range(40)])
d.data = b''.join([b"hi there client" for x in range(1500)])
sock.buffer = BytesIO(d.serialize())

frames = []
Expand All @@ -1381,7 +1381,7 @@ def send_rst_frame(stream_id, error_code):
def test_connection_stream_is_removed_when_receiving_out_of_range_frame(self):
sock = DummySocket()
d = DataFrame(1)
d.data = b''.join([b"hi there sir" for x in range(40)])
d.data = b''.join([b"hi there sir" for x in range(1500)])
sock.buffer = BytesIO(d.serialize())

c = HTTP20Connection('www.google.com')
Expand Down

0 comments on commit 5dac9a8

Please sign in to comment.