summaryrefslogtreecommitdiffstats
path: root/api/websocket_test.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-09-29 12:57:37 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-09-29 12:57:37 -0400
commitfc54aececcded9e84f0565d3672c43cc50b1d994 (patch)
treede43709b81971657aa36067ce2ccf74c95e37915 /api/websocket_test.go
parent53ba8ec9c2bbaee510c2b1c9b5b59f9fdf44f365 (diff)
downloadchat-fc54aececcded9e84f0565d3672c43cc50b1d994.tar.gz
chat-fc54aececcded9e84f0565d3672c43cc50b1d994.tar.bz2
chat-fc54aececcded9e84f0565d3672c43cc50b1d994.zip
Added a short wait to TestSetActiveChannel to stop randomly failing tests (#4115)
* Added a short wait to TestSetActiveChannel to stop randomly failing tests * Increased the timeout in TestWebSocketEvent
Diffstat (limited to 'api/websocket_test.go')
-rw-r--r--api/websocket_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/websocket_test.go b/api/websocket_test.go
index be762429a..dcbc8e0f4 100644
--- a/api/websocket_test.go
+++ b/api/websocket_test.go
@@ -101,7 +101,7 @@ func TestWebSocketEvent(t *testing.T) {
}
}()
- time.Sleep(300 * time.Millisecond)
+ time.Sleep(400 * time.Millisecond)
stop <- true
@@ -128,7 +128,7 @@ func TestWebSocketEvent(t *testing.T) {
}
}()
- time.Sleep(300 * time.Millisecond)
+ time.Sleep(400 * time.Millisecond)
stop <- true