MCPcopy
hub / github.com/aceld/zinx / TestServerDeadLock

Function TestServerDeadLock

znet/server_test.go:157–168  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

155}
156
157func TestServerDeadLock(t *testing.T) {
158 s := NewServer()
159
160 s.Start()
161 time.Sleep(time.Second * 1)
162
163 go func() {
164 _, _ = net.Dial("tcp", "127.0.0.1:8999")
165 }()
166 time.Sleep(time.Second * 1)
167 s.Stop()
168}
169
170type CloseConnectionBeforeSendMsgRouter struct {
171 BaseRouter

Callers

nothing calls this directly

Calls 3

StartMethod · 0.95
StopMethod · 0.95
NewServerFunction · 0.85

Tested by

no test coverage detected