Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test case for server sending GOAWAY before opening a stream #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jprjr
Copy link

@jprjr jprjr commented Mar 25, 2022

Hi there - this is for issue #179 - it just adds a test case for what (I think) the expected behavior is - if a connection has received a GOAWAY frame before a stream is opened, then opening a stream should result in an error.

Happy to change if the expectation is elsewhere (that writing headers should be an error, or receiving should be an error)

Comment on lines +279 to +280
local stream = c:new_stream()
assert.falsy(stream)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should assert the particular error you get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants