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

Fix upgrading to h2c #313

Merged
merged 1 commit into from
Mar 4, 2017
Merged

Fix upgrading to h2c #313

merged 1 commit into from
Mar 4, 2017

Conversation

vfaronov
Copy link
Contributor

@vfaronov vfaronov commented Mar 4, 2017

Fixes #312

Copy link
Member

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Cool, this looks really good. I have one small requirement with the testing, but everything that's currently in the patch is 💯.

# Check that the response is OK and that we did upgrade to HTTP/2.
assert response.status == 200
assert response.read()
assert response.version == HTTPVersion.http20
Copy link
Member

Choose a reason for hiding this comment

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

So this is a great test, thanks. But the release tests are generally allowed to fail because Travis sucks at running tests with real networks. Can you write a test in test_integration.py or test_integration_http11.py as well to ensure that this works properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did change test_integration_http11.py in such a way that it fails without my fix. Do you think something else is necessary?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, no, sorry, I just wasn't paying enough attention there. My bad!

@Lukasa Lukasa merged commit 8a95ad6 into python-hyper:development Mar 4, 2017
@vfaronov vfaronov deleted the fix-upgrade-h2c branch March 4, 2017 22:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants