Skip to content

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

test(catalogue): simplify flow creation in tests

Steven Enamakelbebe096ac2ac
diff --git a/crates/openhuman-core/src/flows/catalogue_tests.rs b/crates/openhuman-core/src/flows/catalogue_tests.rs
index db700e60f4..da2c16743e 100644
--- a/crates/openhuman-core/src/flows/catalogue_tests.rs
+++ b/crates/openhuman-core/src/flows/catalogue_tests.rs
@@ -220,14 +220,8 @@ fn entries_are_sorted_by_name_so_the_prompt_prefix_is_stable() {
..Default::default()
};
for name in ["Zebra", "Alpha", "Mango"] {
- super::super::store::create_flow(
- &config,
- name.to_string(),
- graph.clone(),
- false,
- true,
- )
- .expect("flow saves");
+ super::super::store::create_flow(&config, name.to_string(), graph.clone(), false, true)
+ .expect("flow saves");
}
let names: Vec<String> = flow_entries(&config).into_iter().map(|e| e.name).collect();
assert_eq!(names, vec!["Alpha", "Mango", "Zebra"]);