Skip to content

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

test(memory): simplify source id extraction in import test

Steven Enamakel06cb3ea260ee
diff --git a/crates/openhuman-core/src/memory/import_tests.rs b/crates/openhuman-core/src/memory/import_tests.rs
index 245ed3af68..6a04ec432c 100644
--- a/crates/openhuman-core/src/memory/import_tests.rs
+++ b/crates/openhuman-core/src/memory/import_tests.rs
@@ -239,12 +239,7 @@ async fn connector_syncs_are_not_imported() {
assert_eq!(items.len(), 8);
let ids: Vec<String> = items
.iter()
- .filter_map(|hit| {
- hit.meta
- .source
- .as_ref()
- .and_then(|source| source.id.clone())
- })
+ .filter_map(|hit| hit.meta.source.id.clone())
.collect();
assert_eq!(ids.len(), 8, "every item carries its legacy id");
for skipped in [