increase runtime test timout to 100s
This commit is contained in:
@@ -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))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user