mirror of
https://github.com/golang/go
synced 2024-11-18 08:44:43 -07:00
net: add simple SetKeepAlivePeriod call test
R=golang-dev, dave CC=golang-dev https://golang.org/cl/12090043
This commit is contained in:
parent
1794880299
commit
fa673bd872
@ -103,6 +103,7 @@ func TestTCPConnSpecificMethods(t *testing.T) {
|
||||
}
|
||||
defer c.Close()
|
||||
c.SetKeepAlive(false)
|
||||
c.SetKeepAlivePeriod(3 * time.Second)
|
||||
c.SetLinger(0)
|
||||
c.SetNoDelay(false)
|
||||
c.LocalAddr()
|
||||
|
Loading…
Reference in New Issue
Block a user