Skip to content

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

test(agent): assert parked review prevents plan exit

Steven Enamakeldea4b8e10117
diff --git a/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs b/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
index 3af407b631..98cede5658 100644
--- a/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
+++ b/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
@@ -51,7 +51,7 @@ async fn plan_exit_does_not_flip_while_a_review_is_parked() {
)
.await
.unwrap();
- assert!(!result.is_error);
+ assert!(result.is_error, "a parked review must refuse plan exit");
assert_eq!(
crate::threads::run_mode::get_mode(
&crate::core::runtime::DispatchCtx::ambient(),