Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style: apply rustfmt formatting to shell job and native jail tests

Steven Enamakel876e4daa7fac
diff --git a/crates/openhuman-core/src/cron/scheduler/shell_job.rs b/crates/openhuman-core/src/cron/scheduler/shell_job.rs
index 90c69579bd..dca81bb24f 100644
--- a/crates/openhuman-core/src/cron/scheduler/shell_job.rs
+++ b/crates/openhuman-core/src/cron/scheduler/shell_job.rs
@@ -4,11 +4,11 @@
use crate::config::Config;
use crate::cron::CronJob;
use crate::security::SecurityPolicy;
-use tokio::time::Duration;
#[cfg(test)]
use std::process::Stdio;
#[cfg(test)]
use tokio::time;
+use tokio::time::Duration;
pub(super) const SHELL_JOB_TIMEOUT_SECS: u64 = 120;
diff --git a/crates/openhuman-core/src/sandbox/native_jail_tests.rs b/crates/openhuman-core/src/sandbox/native_jail_tests.rs
index d1e3534f9c..ae115f129a 100644
--- a/crates/openhuman-core/src/sandbox/native_jail_tests.rs
+++ b/crates/openhuman-core/src/sandbox/native_jail_tests.rs
@@ -26,7 +26,13 @@ fn shell_request_uses_the_platform_shell_and_caller_known_process_resource() ->
let resource = contract::ResourceId("known-resource".to_owned());
let cwd = tempfile::tempdir()?;
let env = BTreeMap::from([("LANG".to_owned(), "C".to_owned())]);
- let request = shell_request(&resource, "printf 'one two'", cwd.path(), env.clone(), false)?;
+ let request = shell_request(
+ &resource,
+ "printf 'one two'",
+ cwd.path(),
+ env.clone(),
+ false,
+ )?;
let expected = platform_shell::build_std_command("printf 'one two'");
let expected_argv = std::iter::once(expected.get_program().to_str().unwrap().to_owned())
@@ -240,7 +246,11 @@ async fn released_tinybox_runs_a_native_jail_through_the_pinned_loader() -> anyh
)
.await?;
assert!(output.success());
- assert_eq!(output.stdout.len(), 150_000, "all terminal output batches are read");
+ assert_eq!(
+ output.stdout.len(),
+ 150_000,
+ "all terminal output batches are read"
+ );
let output = execute_passthrough(
&config,