Skip to content

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

chore: files changed tests/storage_agent_scopes_e2e.rs,tests/storage_delegation_e2e.rs

Steven Enamakela60bdab993d0
diff --git a/tests/storage_agent_scopes_e2e.rs b/tests/storage_agent_scopes_e2e.rs
index e3b15d18d7..d1c8396893 100644
--- a/tests/storage_agent_scopes_e2e.rs
+++ b/tests/storage_agent_scopes_e2e.rs
@@ -117,7 +117,9 @@ async fn two_agents_keep_cron_and_flows_apart(case: Case) {
assert!(cron::get_job(&config, &alpha_job.id).is_err());
assert!(flow_names(&config).await.is_empty(), "B sees A's flow");
assert!(
- flows::ops::flows_get(&config, &alpha_flow.id).await.is_err(),
+ flows::ops::flows_get(&config, &alpha_flow.id)
+ .await
+ .is_err(),
"B can read A's flow by id"
);
})
@@ -169,7 +171,10 @@ async fn two_agents_keep_cron_and_flows_apart(case: Case) {
// Background visits see the agents' jobs under their own ids.
let visited = for_each_scope("e2e", || async { job_names(&config) }).await;
assert!(
- visited.contains(&(Some("agent-alpha".to_string()), vec!["alpha-job".to_string()])),
+ visited.contains(&(
+ Some("agent-alpha".to_string()),
+ vec!["alpha-job".to_string()]
+ )),
"{visited:?}"
);
assert!(
@@ -206,9 +211,14 @@ async fn no_acting_agent_falls_back_to_the_local_scope(case: Case) {
assert!(storage::scope_from(None, true).is_err());
add_due_job(&config, "operator-job");
- flows::ops::flows_create(&config, "operator-flow".to_string(), flow_graph("op"), false)
- .await
- .unwrap();
+ flows::ops::flows_create(
+ &config,
+ "operator-flow".to_string(),
+ flow_graph("op"),
+ false,
+ )
+ .await
+ .unwrap();
assert_eq!(job_names(&config), vec!["operator-job".to_string()]);
assert_eq!(flow_names(&config).await, vec!["operator-flow".to_string()]);
diff --git a/tests/storage_delegation_e2e.rs b/tests/storage_delegation_e2e.rs
index dac78870f9..0f97d320c2 100644
--- a/tests/storage_delegation_e2e.rs
+++ b/tests/storage_delegation_e2e.rs
@@ -134,8 +134,10 @@ async fn the_delegation_checkpointer_resumes_and_keeps_scopes_apart(case: Case)
if case.driver.is_durable() {
let url = case.url.clone();
let reopened =
- openhuman_core::storage::block_on(async move { openhuman_core::storage::open(&url).await })
- .unwrap();
+ openhuman_core::storage::block_on(
+ async move { openhuman_core::storage::open(&url).await },
+ )
+ .unwrap();
openhuman_core::storage::install(reopened);
CoreContext::scope(Arc::clone(&alpha), async {
let checkpointer = open_delegation_checkpointer(&config).unwrap();