fix incorrect error reporting in tests https://github.com/xtaci/smux/issues/54

This commit is contained in:
xtaci
2019-08-28 11:41:48 +08:00
parent b71f58ec76
commit 6aa95ef6b7
-1
View File
@@ -33,7 +33,6 @@ func setupServer(tb testing.TB) (addr string, stopfunc func(), client net.Conn,
go func() {
conn, err := ln.Accept()
if err != nil {
tb.Error(err)
return
}
go handleConnection(conn)