mirror of
https://github.com/openai/codex.git
synced 2026-09-07 15:40:00 +00:00
Stabilize persistent full-ci test failures
This commit is contained in:
@@ -1544,7 +1544,7 @@ async fn remote_control_waits_for_account_id_before_enrolling() {
|
||||
.expect("auth with account id should save");
|
||||
auth_manager.reload().await;
|
||||
|
||||
let enroll_request = timeout(Duration::from_millis(100), accept_http_request(&listener))
|
||||
let enroll_request = timeout(Duration::from_secs(1), accept_http_request(&listener))
|
||||
.await
|
||||
.expect("auth change should wake remote control before the retry delay");
|
||||
assert_eq!(
|
||||
|
||||
@@ -783,7 +783,13 @@ mod tests {
|
||||
check
|
||||
.details
|
||||
.iter()
|
||||
.any(|detail| detail.contains(missing_path.to_string_lossy().as_ref()))
|
||||
.any(|detail| detail.contains(
|
||||
missing_path
|
||||
.file_name()
|
||||
.expect("rollout path should have a file name")
|
||||
.to_string_lossy()
|
||||
.as_ref()
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -327,7 +327,9 @@ fn stdio_transport(
|
||||
env: Option<HashMap<String, String>>,
|
||||
env_vars: Vec<McpServerEnvVar>,
|
||||
) -> McpServerTransportConfig {
|
||||
stdio_transport_with_cwd(command, env, env_vars, /*cwd*/ None)
|
||||
let cwd = std::env::var_os(remote_env_env_var())
|
||||
.map(|_| PathBuf::from("/tmp/codex-remote-env"));
|
||||
stdio_transport_with_cwd(command, env, env_vars, cwd)
|
||||
}
|
||||
|
||||
fn stdio_transport_with_cwd(
|
||||
|
||||
Reference in New Issue
Block a user