Skip to content

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

test(threads): update attachment storage metadata test

Steven Enamakel6b56af637620
diff --git a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs
index c12c9f836d..c7bd5eb000 100644
--- a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs
@@ -377,11 +377,12 @@ async fn append_cannot_forge_private_attachment_storage_metadata() {
"path": "../../etc/passwd"
}]})),
};
+ let update_error = message_update(&crate::core::runtime::DispatchCtx::ambient(), update)
+ .await
+ .expect_err("metadata updates must not create resolver authority");
assert!(
- message_update(&crate::core::runtime::DispatchCtx::ambient(), update)
- .await
- .is_err(),
- "metadata updates must not create resolver authority"
+ update_error.contains("reserved"),
+ "expected reserved-key rejection, got: {update_error}"
);
}