|
@ -83,7 +83,7 @@ func TestEcho(t *testing.T) { |
|
|
func TestLen(t *testing.T) { |
|
|
func TestLen(t *testing.T) { |
|
|
rand.Seed(time.Now().UnixNano()) |
|
|
rand.Seed(time.Now().UnixNano()) |
|
|
|
|
|
|
|
|
connect := int(rand.Int31n(1000)) |
|
|
|
|
|
|
|
|
connect := int(rand.Int31n(100)) |
|
|
disconnect := rand.Float32() |
|
|
disconnect := rand.Float32() |
|
|
conns := make([]*websocket.Conn, connect) |
|
|
conns := make([]*websocket.Conn, connect) |
|
|
defer func() { |
|
|
defer func() { |
|
|