Skip to content

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

chore(tests): reformat long lines in test assertions

Steven Enamakel061631a5a016
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs
index e7853cd2ca..ecd6adf136 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs
@@ -27,7 +27,10 @@ async fn run_shell(
#[test]
fn a_command_exit_report_is_program_output_not_a_failure_class() {
- assert_eq!(recovery_policy("shell", &sigpipe_git_log_report(), false), None);
+ assert_eq!(
+ recovery_policy("shell", &sigpipe_git_log_report(), false),
+ None
+ );
for stdout in [
"HTTP/1.1 403 Forbidden",
"test_login ... Unauthorized",
@@ -121,7 +124,8 @@ async fn an_identical_failing_command_repeated_unchanged_still_halts() {
assert_eq!(drain_pause_count(&handle), 1);
}
-const MODULE_FAULT: &str = "Failed to resolve command runtime: module 'tinyruntime' could not be loaded \
+const MODULE_FAULT: &str =
+ "Failed to resolve command runtime: module 'tinyruntime' could not be loaded \
from the installer bundle: module `ubuntu-22.04-x86_64` refused: module directory is owned by \
another user. This is terminal for the running process; restart the app to try again";
diff --git a/crates/openhuman-core/src/tools/impl/system/shell_tests_runtime_and_sandbox_tests.rs b/crates/openhuman-core/src/tools/impl/system/shell_tests_runtime_and_sandbox_tests.rs
index bced5446b6..989f9d19e3 100644
--- a/crates/openhuman-core/src/tools/impl/system/shell_tests_runtime_and_sandbox_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/system/shell_tests_runtime_and_sandbox_tests.rs
@@ -108,7 +108,9 @@ async fn shell_keeps_inherited_path_when_python_runtime_is_unavailable() {
.await
.unwrap();
assert!(
- !result.output().contains("Failed to resolve command runtime"),
+ !result
+ .output()
+ .contains("Failed to resolve command runtime"),
"the command must run on the inherited PATH: {}",
result.output()
);