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
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
53ba8ec9c2
Коммит
fc54aececc
@@ -182,6 +182,8 @@ func TestSetActiveChannel(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
time.Sleep(500 * time.Millisecond)
|
||||||
|
|
||||||
status, _ = GetStatus(th.BasicUser.Id)
|
status, _ = GetStatus(th.BasicUser.Id)
|
||||||
// need to check if offline to catch race
|
// need to check if offline to catch race
|
||||||
if status.Status != model.STATUS_OFFLINE && status.ActiveChannel != th.BasicChannel.Id {
|
if status.Status != model.STATUS_OFFLINE && status.ActiveChannel != th.BasicChannel.Id {
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ func TestWebSocketEvent(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
time.Sleep(300 * time.Millisecond)
|
time.Sleep(400 * time.Millisecond)
|
||||||
|
|
||||||
stop <- true
|
stop <- true
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ func TestWebSocketEvent(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
time.Sleep(300 * time.Millisecond)
|
time.Sleep(400 * time.Millisecond)
|
||||||
|
|
||||||
stop <- true
|
stop <- true
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user