Skip to content

Add test for handshake deadline - #385

Merged
kisielk merged 2 commits into
masterfrom
unknown repository
May 29, 2018
Merged

kisielk merged 2 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented May 28, 2018

Copy link
Copy Markdown

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

Comment thread client_server_test.go Outdated
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

ghost commented May 28, 2018

Copy link
Copy Markdown
Author

Please take a look again.

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

kisielk commented May 29, 2018

Copy link
Copy Markdown
Contributor

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