From 4d3b831fd4fe92b064a8d04b4d6473cdc180122a Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 18 Jul 2016 11:20:32 -0400 Subject: Fix possible race condition in TestUserTyping test case (#3612) --- api/user_test.go | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3-1-g7c22