mirror of
https://github.com/openai/codex.git
synced 2026-09-15 12:08:01 +00:00
Increase Windows shell test timeout budget
This commit is contained in:
@@ -20,6 +20,10 @@ use test_case::test_case;
|
||||
/// Use this timeout if, empirically, a test seems to need more time than the
|
||||
/// default.
|
||||
const MEDIUM_TIMEOUT: Duration = Duration::from_secs(5);
|
||||
#[cfg(target_os = "windows")]
|
||||
const DEFAULT_SHELL_TIMEOUT_MS: i64 = 5_000;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
const DEFAULT_SHELL_TIMEOUT_MS: i64 = 2_000;
|
||||
|
||||
fn shell_responses_with_timeout(
|
||||
call_id: &str,
|
||||
@@ -50,7 +54,7 @@ fn shell_responses_with_timeout(
|
||||
}
|
||||
|
||||
fn shell_responses(call_id: &str, command: &str, login: Option<bool>) -> Vec<String> {
|
||||
shell_responses_with_timeout(call_id, command, login, 2_000)
|
||||
shell_responses_with_timeout(call_id, command, login, DEFAULT_SHELL_TIMEOUT_MS)
|
||||
}
|
||||
|
||||
async fn shell_command_harness_with(
|
||||
|
||||
Reference in New Issue
Block a user