Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

fix: cfg linux-only api test helpers

Ogulcan Celik8c6a9e1f6594
diff --git a/tests/api_ping.rs b/tests/api_ping.rs
index 25e4c98e1..22834615d 100644
--- a/tests/api_ping.rs
+++ b/tests/api_ping.rs
@@ -72,6 +72,7 @@ fn wait_for_socket(path: &Path, timeout: Duration) {
panic!("socket did not appear at {}", path.display());
}
+#[cfg(target_os = "linux")]
fn wait_for_path(path: &Path, timeout: Duration) {
let deadline = Instant::now() + timeout;
while Instant::now() < deadline {
@@ -102,6 +103,7 @@ fn spawn_herdr_with_path(
)
}
+#[cfg(target_os = "linux")]
fn spawn_herdr_with_shell(
config_home: &Path,
runtime_dir: &Path,