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

Commit 13ce10a

Browse files
committed
GOAWAY never has a stream.
1 parent 79543f8 commit 13ce10a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_hyper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ def test_goaway_frame_parses_properly(self):
277277
assert f.flags == set()
278278
assert f.additional_data == b'hello'
279279

280+
def test_goaway_frame_never_has_a_stream(self):
281+
with pytest.raises(ValueError):
282+
GoAwayFrame(1)
283+
280284

281285
class TestWindowUpdateFrame(object):
282286
def test_window_update_has_no_flags(self):

0 commit comments

Comments
 (0)