Skip to content

Add test for handshake deadline#385

Merged
kisielk merged 2 commits intomasterfrom
unknown repository
May 29, 2018
Merged

Add test for handshake deadline#385
kisielk merged 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

kisielk commented May 29, 2018

Thanks

@ghost ghost 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