From e39e1207dd8bfe12c277fb016838d8c87fe0a527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20Holmstr=C3=B6m?= Date: Fri, 20 Jan 2017 23:28:12 +0100 Subject: [PATCH] Add 1.7 to travis and reduce number of connections in `TestLen`. --- .travis.yml | 1 + melody_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c0fb05a..f39e406 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ go: - 1.4 - 1.5 - 1.6 +- 1.7 install: - go get github.com/gorilla/websocket script: diff --git a/melody_test.go b/melody_test.go index 7a68527..fb31d2d 100644 --- a/melody_test.go +++ b/melody_test.go @@ -83,7 +83,7 @@ func TestEcho(t *testing.T) { func TestLen(t *testing.T) { rand.Seed(time.Now().UnixNano()) - connect := int(rand.Int31n(1000)) + connect := int(rand.Int31n(100)) disconnect := rand.Float32() conns := make([]*websocket.Conn, connect) defer func() {