Skip to content

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

test(flows): move persistent default setup to the test that needs it

Steven Enamakel753d3b2021ec
diff --git a/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs b/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs
index ddf54c2966..bdad183ec9 100644
--- a/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs
+++ b/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs
@@ -5,7 +5,6 @@ async fn edit_workflow_rejects_a_result_that_is_structurally_invalid() {
use tinyflows_bus::catalog::DraftOrigin;
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
- crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
let draft = ops::flows_draft_create(
&config,
None,
@@ -349,6 +348,7 @@ async fn edit_workflow_surfaces_draft_write_back_failure() {
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
+ crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
let draft = ops::flows_draft_create(
&config,