From 267e6d4547065cf14c3b3b1e80a7af6448ca0d83 Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Fri, 8 May 2026 00:35:35 -0700 Subject: [PATCH] Relax account test timeout on Windows --- codex-rs/app-server/tests/suite/v2/account.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex-rs/app-server/tests/suite/v2/account.rs b/codex-rs/app-server/tests/suite/v2/account.rs index 50c365d633..95e25f2200 100644 --- a/codex-rs/app-server/tests/suite/v2/account.rs +++ b/codex-rs/app-server/tests/suite/v2/account.rs @@ -50,7 +50,10 @@ use wiremock::ResponseTemplate; use wiremock::matchers::method; use wiremock::matchers::path; -const DEFAULT_READ_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(10); +#[cfg(target_os = "windows")] +const DEFAULT_READ_TIMEOUT: Duration = Duration::from_secs(60); +#[cfg(not(target_os = "windows"))] +const DEFAULT_READ_TIMEOUT: Duration = Duration::from_secs(10); const LOGIN_ISSUER_ENV_VAR: &str = "CODEX_APP_SERVER_LOGIN_ISSUER"; // Helper to create a minimal config.toml for the app server