fix: set default fetch timeout to 25 seconds

This commit is contained in:
ldm0
2026-08-16 21:10:24 +08:00
committed by Donough Liu
parent 94b59802b1
commit 61fe8e0f8f
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ pub struct FetchArgs {
/// Maximum wait time in milliseconds. Network-idle and DOM-stable fetches
/// return the current page with a warning when this deadline expires.
#[arg(long, alias = "wait-ms", default_value_t = 10_000)]
#[arg(long, alias = "wait-ms", default_value_t = 25_000)]
pub timeout: u64,
#[command(flatten)]
+4 -4
View File
@@ -100,7 +100,7 @@ fn parses_explicit_fetch_command_with_compatibility_flags() {
wait_response_url: None,
wait_response_body: None,
wait_response_json: None,
timeout: 10_000,
timeout: 25_000,
common: CommonArgs {
insecure_disable_tls_host_verification: false,
obey_robots: true,
@@ -391,7 +391,7 @@ fn infers_fetch_mode_from_bare_url() {
wait_response_url: None,
wait_response_body: None,
wait_response_json: None,
timeout: 10_000,
timeout: 25_000,
common: CommonArgs::default(),
url: "https://example.com".to_owned(),
}))
@@ -426,7 +426,7 @@ fn infers_fetch_mode_from_fetch_only_flags_and_defaults_dump_to_html() {
wait_response_url: None,
wait_response_body: None,
wait_response_json: None,
timeout: 10_000,
timeout: 25_000,
common: CommonArgs::default(),
url: "https://example.com".to_owned(),
}))
@@ -465,7 +465,7 @@ fn infers_fetch_mode_from_header_flag() {
wait_response_url: None,
wait_response_body: None,
wait_response_json: None,
timeout: 10_000,
timeout: 25_000,
common: CommonArgs::default(),
url: "https://example.com".to_owned(),
}))