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 for handshake deadline #385

Merged
merged 2 commits into from May 29, 2018
Merged

Add test for handshake deadline #385

merged 2 commits into from May 29, 2018

Conversation

ghost
Copy link

@ghost ghost commented May 28, 2018

When looking at #384, I didn't see test to confirm handshake read and write are under a deadline.

type netConnDeadlineObserver struct {
t *testing.T
c net.Conn
read, write bool
Copy link
Contributor

Choose a reason for hiding this comment

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

My only qualm is these variable names are not descriptive of their purpose, making it a bit confusing to understand how this test works. Maybe rename them to readDeadlineUsed and writeDeadlineUsed ?

@ghost
Copy link
Author

ghost commented May 28, 2018

Please take a look again.

@kisielk kisielk merged commit c17c80c into gorilla:master May 29, 2018
@kisielk
Copy link
Contributor

kisielk commented May 29, 2018

Thanks

@gorilla gorilla locked and limited conversation to collaborators Aug 29, 2018
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.

1 participant