Skip to content

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

test(memory): reformat prefetch cache assertions

Steven Enamakel8418a9f88532
diff --git a/crates/openhuman-core/src/memory/schemas_tests.rs b/crates/openhuman-core/src/memory/schemas_tests.rs
index 70349092e1..a86954f64a 100644
--- a/crates/openhuman-core/src/memory/schemas_tests.rs
+++ b/crates/openhuman-core/src/memory/schemas_tests.rs
@@ -462,21 +462,20 @@ async fn rpc_learn_invalidates_a_cached_prefetch_pack() {
)
.is_none());
crate::memory::lifecycle::prefetch::settle_for_test(
- &dispatch,
- &config,
- &identity,
- thread,
- false,
+ &dispatch, &config, &identity, thread, false,
)
.await;
- assert!(crate::memory::lifecycle::prefetch::pre_turn(
- &dispatch,
- config.clone(),
- identity.clone(),
- input(),
- None,
- )
- .is_some(), "the initial turn should consume its completed pack");
+ assert!(
+ crate::memory::lifecycle::prefetch::pre_turn(
+ &dispatch,
+ config.clone(),
+ identity.clone(),
+ input(),
+ None,
+ )
+ .is_some(),
+ "the initial turn should consume its completed pack"
+ );
call(
&config,
@@ -486,14 +485,17 @@ async fn rpc_learn_invalidates_a_cached_prefetch_pack() {
.await
.unwrap();
- assert!(crate::memory::lifecycle::prefetch::pre_turn(
- &dispatch,
- config,
- identity,
- input(),
- None,
- )
- .is_none(), "a later turn must not consume a pack cached before RPC learn");
+ assert!(
+ crate::memory::lifecycle::prefetch::pre_turn(
+ &dispatch,
+ config,
+ identity,
+ input(),
+ None,
+ )
+ .is_none(),
+ "a later turn must not consume a pack cached before RPC learn"
+ );
})
.await;
}