MM-57532: Improve timeouts for some tests (#26642)
- Bump timeouts for some cases - Improve sleep with require/assert.EventuallyT for better performance and reliability. https://mattermost.atlassian.net/browse/MM-57532 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bc6182229b
Коммит
dc3e5b9269
@@ -649,7 +649,7 @@ func testCreatePostWithOutgoingHook(
|
||||
select {
|
||||
case ok := <-success:
|
||||
require.True(t, ok, "Test server did send an invalid webhook.")
|
||||
case <-time.After(time.Second):
|
||||
case <-time.After(2 * time.Second):
|
||||
require.FailNow(t, "Timeout, test server did not send the webhook.")
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user