Skip to content

Commit 6aab6bc

Browse files
committed
Increase initial timeout after rate limit error in tests
1 parent e169449 commit 6aab6bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Assets/Plugins/StreamChat/Core/LowLevelClient/API/Internal/InternalApiClientBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private async Task<TResponse> HttpRequest<TResponse>(HttpMethodType httpMethod,
161161
#if STREAM_TESTS_ENABLED
162162
if (apiError.StatusCode == StreamApiException.RateLimitErrorHttpStatusCode && attempt < 50)
163163
{
164-
var delaySeconds = attempt * 10;
164+
var delaySeconds = 61 + attempt * 10;
165165
_logs.Warning($"API CLIENT, TESTS MODE, Rate Limit API Error - Wait for {delaySeconds} seconds");
166166
await Task.Delay(delaySeconds * 1000);
167167
return await HttpRequest<TResponse>(httpMethod, endpoint,

0 commit comments

Comments
 (0)