Skip to content

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

test(embed): assert deferred reply reaches profile engine

Steven Enamakel170ecab7eafc
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rs
index ddd1b2440c..1e37d463e5 100644
--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs
+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs
@@ -436,6 +436,7 @@ async fn scenario() {
if response
.to_string()
.contains(&format!("{}-native-learning", handle.id()))
+ && response.to_string().contains("done")
{
break response;
}
@@ -451,6 +452,10 @@ async fn scenario() {
text.contains(&format!("{}-secret", handle.id())),
"{response}"
);
+ assert!(
+ text.contains("done"),
+ "the deferred committed reply reaches the profile engine: {response}"
+ );
assert!(
text.contains(&format!("{}-native-learning", handle.id())),
"native memory mutation was persisted: {response}"