Commit fa673bd8 authored by Mikio Hara's avatar Mikio Hara

net: add simple SetKeepAlivePeriod call test

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/12090043
parent 17948802
...@@ -103,6 +103,7 @@ func TestTCPConnSpecificMethods(t *testing.T) { ...@@ -103,6 +103,7 @@ func TestTCPConnSpecificMethods(t *testing.T) {
} }
defer c.Close() defer c.Close()
c.SetKeepAlive(false) c.SetKeepAlive(false)
c.SetKeepAlivePeriod(3 * time.Second)
c.SetLinger(0) c.SetLinger(0)
c.SetNoDelay(false) c.SetNoDelay(false)
c.LocalAddr() c.LocalAddr()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment