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

Commit 4f96131

Browse files
committed
Test send window incrementing.
1 parent 65d2170 commit 4f96131

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/test_hyper.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,17 @@ def test_streams_are_cleared_from_connections_on_close(self):
888888
assert not c.streams
889889
assert c.next_stream_id == 3
890890

891+
def test_connections_increment_send_window_properly(self):
892+
f = WindowUpdateFrame(0)
893+
f.window_increment = 1000
894+
c = HTTP20Connection('www.google.com')
895+
c._sock = DummySocket()
896+
897+
# 'Receive' the WINDOWUPDATE frame.
898+
c.receive_frame(f)
899+
900+
assert c._out_flow_control_window == 65535 + 1000
901+
891902

892903
class TestHyperStream(object):
893904
def test_streams_have_ids(self):

0 commit comments

Comments
 (0)