summaryrefslogtreecommitdiffstats
path: root/api/status_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/status_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/status_test.go')
-rw-r--r--api/status_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/status_test.go b/api/status_test.go
index 6e4fb30ca..f15c239db 100644
--- a/api/status_test.go
+++ b/api/status_test.go
@@ -182,6 +182,8 @@ func TestSetActiveChannel(t *testing.T) {
t.Fatal(err)
}
+ time.Sleep(500 * time.Millisecond)
+
status, _ = GetStatus(th.BasicUser.Id)
// need to check if offline to catch race
if status.Status != model.STATUS_OFFLINE && status.ActiveChannel != th.BasicChannel.Id {