[full-ci][tests-only] test: check last email content with retries as emails can be delayed (#2038)
* test: check last email content with retries Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * test: cleanup unused const Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> --------- Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ class HttpRequestHelper {
|
||||
public static function numRetriesOnHttpTooEarly(): int {
|
||||
// Currently reva and OpenCloud may return HTTP_TOO_EARLY
|
||||
// So try up to 10 times before giving up.
|
||||
return 10;
|
||||
return STANDARD_RETRY_COUNT;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -732,7 +732,7 @@ class HttpRequestHelper {
|
||||
*/
|
||||
public static function getRequestTimeout(): int {
|
||||
$timeout = \getenv("REQUEST_TIMEOUT");
|
||||
return (int)$timeout ?: 60;
|
||||
return (int)$timeout ?: HTTP_REQUEST_TIMEOUT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user