test for nil addrs

This commit is contained in:
Josh Baker 2017-11-12 16:36:21 -07:00
parent d6385cdf49
commit 81fe391381
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,12 @@ func testServe(network, addr string, unix bool, nclients int) {
connected++
out = []byte("sweetness\r\n")
opts.TCPKeepAlive = time.Minute * 5
if info.LocalAddr == nil {
panic("nil local addr")
}
if info.RemoteAddr == nil {
panic("nil local addr")
}
return
}
events.Closed = func(id int, err error) (action Action) {