Skip to content

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

style: format latest upstream tests

Steven Enamakel11d6f8934ce2
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rs
index 50d0867182..0ee50149a6 100644
--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs
+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs
@@ -424,15 +424,14 @@ async fn scenario() {
None,
),
);
- let alice_profile =
- handles[0]
- .scope(async {
- openhuman_core::profiles::current(
+ let alice_profile = handles[0]
+ .scope(async {
+ openhuman_core::profiles::current(
&openhuman_core::core::runtime::DispatchCtx::ambient(),
)
.unwrap()
- })
- .await;
+ })
+ .await;
let closed_hook = no_callback.hook(handles[0].id(), alice_profile.lease_fence().clone());
assert!(handles[0]
.scope(closed_hook.before_tool_decision(&hook_context))
@@ -510,15 +509,14 @@ async fn scenario() {
);
}
handles.insert(0, reopened);
- let alice_profile =
- handles[0]
- .scope(async {
- openhuman_core::profiles::current(
+ let alice_profile = handles[0]
+ .scope(async {
+ openhuman_core::profiles::current(
&openhuman_core::core::runtime::DispatchCtx::ambient(),
)
.unwrap()
- })
- .await;
+ })
+ .await;
let alice_hook = handles[0]
.context()
.host_overrides()
diff --git a/crates/openhuman-rpc/src/server/http/events_tests.rs b/crates/openhuman-rpc/src/server/http/events_tests.rs
index b3ea3e3a46..c27a7dc467 100644
--- a/crates/openhuman-rpc/src/server/http/events_tests.rs
+++ b/crates/openhuman-rpc/src/server/http/events_tests.rs
@@ -104,7 +104,8 @@ async fn events_stream_forwards_only_the_bound_client() {
let token = crate::core_host::core::event_bind_tokens::issue("stream-client", None)
.expect("bind token")
.token;
- let response = events_handler(HeaderMap::new(), None, query("stream-client", Some(&token))).await;
+ let response =
+ events_handler(HeaderMap::new(), None, query("stream-client", Some(&token))).await;
assert_eq!(response.status(), StatusCode::OK);
let mut body = response.into_body().into_data_stream();