diff options
-rw-r--r-- | api/status_test.go | 2 | ||||
-rw-r--r-- | api/websocket_test.go | 4 |
2 files changed, 4 insertions, 2 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 { 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 |