Add 1.7 to travis and reduce number of connections in TestLen.
This commit is contained in:
@@ -4,6 +4,7 @@ go:
|
|||||||
- 1.4
|
- 1.4
|
||||||
- 1.5
|
- 1.5
|
||||||
- 1.6
|
- 1.6
|
||||||
|
- 1.7
|
||||||
install:
|
install:
|
||||||
- go get github.com/gorilla/websocket
|
- go get github.com/gorilla/websocket
|
||||||
script:
|
script:
|
||||||
|
|||||||
+1
-1
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user