1
0
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:
Mikio Hara 2013-07-31 12:34:14 +09:00
parent 1794880299
commit fa673bd872

View File

@ -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()