Skip to content

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

chore: files changed crates/openhuman-core/src/memory/schemas/handlers.rs

Steven Enamakeldb3c8ed9a1d5
diff --git a/crates/openhuman-core/src/memory/schemas/handlers.rs b/crates/openhuman-core/src/memory/schemas/handlers.rs
index c26c92d36e..6acdf0f81a 100644
--- a/crates/openhuman-core/src/memory/schemas/handlers.rs
+++ b/crates/openhuman-core/src/memory/schemas/handlers.rs
@@ -127,22 +127,6 @@ pub(super) fn engine_set(ctx: DispatchCtx, params: Map<String, Value>) -> Contro
})
}
-#[cfg(test)]
-mod tests {
- use super::engine_set_save_error;
-
- #[test]
- fn nonconflict_save_failures_remain_engine_errors() {
- let raw = engine_set_save_error(anyhow::anyhow!("disk unavailable"));
- let error = crate::core::StructuredRpcError::decode(&raw).unwrap();
- assert_eq!(error.data.as_ref().unwrap()["code"], "ENGINE");
- assert_eq!(
- error.message,
- "engine error: saving config failed: disk unavailable"
- );
- }
-}
-
pub(super) fn recall(ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {
rpc::<RecallParams, _>(
ctx,
@@ -434,3 +418,19 @@ pub(super) fn migration_retry(ctx: DispatchCtx, params: Map<String, Value>) -> C
layout_migration::retry(&config)
})
}
+
+#[cfg(test)]
+mod tests {
+ use super::engine_set_save_error;
+
+ #[test]
+ fn nonconflict_save_failures_remain_engine_errors() {
+ let raw = engine_set_save_error(anyhow::anyhow!("disk unavailable"));
+ let error = crate::core::StructuredRpcError::decode(&raw).unwrap();
+ assert_eq!(error.data.as_ref().unwrap()["code"], "ENGINE");
+ assert_eq!(
+ error.message,
+ "engine error: saving config failed: disk unavailable"
+ );
+ }
+}