increase runtime test timout to 100s

This commit is contained in:
Simon
2026-03-29 17:37:32 +00:00
parent e031396459
commit bbb1792dbe
2 changed files with 16 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ pub static ALL_PROVIDERS: Lazy<HashMap<&'static str, DynProvider>> = Lazy::new(|
const CHANNEL_STATUS_ERROR: &str = "error";
const VALIDATION_RESULTS_REQUIRED: usize = 5;
const VALIDATION_COOLDOWN: Duration = Duration::from_secs(60);
const VALIDATION_MEDIA_TIMEOUT: Duration = Duration::from_secs(100);
#[derive(Clone)]
struct ProviderValidationContext {
@@ -143,7 +144,7 @@ async fn validate_media_response(
let mut requester = requester;
let response = requester
.get_raw_with_headers(url, headers)
.get_raw_with_headers_timeout(url, headers, Some(VALIDATION_MEDIA_TIMEOUT))
.await
.map_err(|err| {
format!(
@@ -886,7 +887,7 @@ mod tests {
let mut requester = Requester::new();
let response = requester
.get_raw_with_headers(url, headers)
.get_raw_with_headers_timeout(url, headers, Some(VALIDATION_MEDIA_TIMEOUT))
.await
.map_err(|err| format!("{provider_id} item {} request failed for {url}: {err}", item_index + 1))?;