Skip to content

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

fix(test): update approval gate tests to match new validation logic

Steven Enamakel887bf360de50
diff --git a/crates/openhuman-core/src/security/approval/gate_tests.rs b/crates/openhuman-core/src/security/approval/gate_tests.rs
index 214ee75463..0b93621310 100644
--- a/crates/openhuman-core/src/security/approval/gate_tests.rs
+++ b/crates/openhuman-core/src/security/approval/gate_tests.rs
@@ -216,7 +216,7 @@ async fn find_approval_decided(
Some(ref ev @ crate::core::events::DomainEvent::ApprovalDecided { ref request_id, .. })
if request_id == expected_request_id =>
{
- return ev
+ return ev.clone()
}
Some(_) => continue,
None => panic!("the bus closed before the expected event arrived"),