summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-07-18 11:20:32 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-07-18 11:20:32 -0400
commit4d3b831fd4fe92b064a8d04b4d6473cdc180122a (patch)
tree62528a2cb28644302d0a996894da4e16601cac47 /api
parent4ecd79f9e64dd387b822a37873b8a1185c7af26e (diff)
downloadchat-4d3b831fd4fe92b064a8d04b4d6473cdc180122a.tar.gz
chat-4d3b831fd4fe92b064a8d04b4d6473cdc180122a.tar.bz2
chat-4d3b831fd4fe92b064a8d04b4d6473cdc180122a.zip
Fix possible race condition in TestUserTyping test case (#3612)
Diffstat (limited to 'api')
-rw-r--r--api/user_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/user_test.go b/api/user_test.go
index 6f3f616e7..7d1e4026c 100644
--- a/api/user_test.go
+++ b/api/user_test.go
@@ -1744,6 +1744,8 @@ func TestUserTyping(t *testing.T) {
defer WebSocketClient2.Close()
WebSocketClient2.Listen()
+ time.Sleep(300 * time.Millisecond)
+
WebSocketClient.UserTyping(th.BasicChannel.Id, "")
time.Sleep(300 * time.Millisecond)