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
```
Этот коммит содержится в:
Agniva De Sarker
2024-04-05 19:28:49 +05:30
коммит произвёл GitHub
родитель bc6182229b
Коммит dc3e5b9269
14 изменённых файлов: 65 добавлений и 87 удалений

Просмотреть файл

@@ -1856,7 +1856,7 @@ func TestPluginHTTPUpgradeWebSocket(t *testing.T) {
var resp *model.WebSocketResponse
select {
case resp = <-wsc.ResponseChannel:
case <-time.After(1 * time.Second):
case <-time.After(2 * time.Second):
}
require.NotNil(t, resp)
require.Equal(t, resp.Status, model.StatusOk)