test: stabilize local Linux sandbox coverage

This commit is contained in:
Adam Perry
2026-06-09 17:42:54 +00:00
parent 075342a92f
commit 0c9f0b145d
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -6,4 +6,5 @@ codex_rust_crate(
extra_binaries = [
"//codex-rs/bwrap:bwrap",
],
integration_test_args = ["--test-threads=1"],
)
@@ -26,14 +26,14 @@ use tempfile::NamedTempFile;
// At least on GitHub CI, the arm64 tests appear to need longer timeouts.
#[cfg(not(target_arch = "aarch64"))]
const SHORT_TIMEOUT_MS: u64 = 5_000;
const SHORT_TIMEOUT_MS: u64 = 15_000;
#[cfg(target_arch = "aarch64")]
const SHORT_TIMEOUT_MS: u64 = 5_000;
const SHORT_TIMEOUT_MS: u64 = 15_000;
#[cfg(not(target_arch = "aarch64"))]
const LONG_TIMEOUT_MS: u64 = 5_000;
const LONG_TIMEOUT_MS: u64 = 15_000;
#[cfg(target_arch = "aarch64")]
const LONG_TIMEOUT_MS: u64 = 5_000;
const LONG_TIMEOUT_MS: u64 = 15_000;
#[cfg(not(target_arch = "aarch64"))]
const NETWORK_TIMEOUT_MS: u64 = 10_000;
@@ -16,7 +16,7 @@ use std::time::Duration;
use tokio::process::Command;
const BWRAP_UNAVAILABLE_ERR: &str = "bubblewrap is unavailable: no system bwrap was found";
const NETWORK_TIMEOUT_MS: u64 = 4_000;
const NETWORK_TIMEOUT_MS: u64 = 15_000;
const MANAGED_PROXY_PERMISSION_ERR_SNIPPETS: &[&str] = &[
"loopback: Failed RTM_NEWADDR",
"loopback: Failed RTM_NEWLINK",