Skip to content

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

test(agent): reformat turn origin test to satisfy rustfmt

Steven Enamakel5b6536b86fbe
diff --git a/crates/openhuman-core/src/agent/turn_origin_tests.rs b/crates/openhuman-core/src/agent/turn_origin_tests.rs
index 3863f2fb52..99b37a9488 100644
--- a/crates/openhuman-core/src/agent/turn_origin_tests.rs
+++ b/crates/openhuman-core/src/agent/turn_origin_tests.rs
@@ -326,17 +326,21 @@ async fn current_returns_inner_origin_on_nested_scope() {
#[tokio::test]
async fn origin_is_carried_by_the_scoped_core_context_only() {
assert!(crate::core::runtime::CoreContext::scoped().is_none());
- let (via_module, via_context, scoped_during) = with_origin(AgentTurnOrigin::DirectChat, async {
- (
- current(),
- crate::core::runtime::CoreContext::current_turn_origin(),
- crate::core::runtime::CoreContext::scoped().is_some(),
- )
- })
- .await;
+ let (via_module, via_context, scoped_during) =
+ with_origin(AgentTurnOrigin::DirectChat, async {
+ (
+ current(),
+ crate::core::runtime::CoreContext::current_turn_origin(),
+ crate::core::runtime::CoreContext::scoped().is_some(),
+ )
+ })
+ .await;
assert!(matches!(via_module, Some(AgentTurnOrigin::DirectChat)));
assert!(matches!(via_context, Some(AgentTurnOrigin::DirectChat)));
- assert!(scoped_during, "with_origin must scope a context, bare if none was booted");
+ assert!(
+ scoped_during,
+ "with_origin must scope a context, bare if none was booted"
+ );
assert!(crate::core::runtime::CoreContext::scoped().is_none());
}