The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style: reformat artifact test assertions and store expressions
Steven Enamakel7f0d42bc066f
diff --git a/crates/openhuman-core/src/artifacts/production_tests.rs b/crates/openhuman-core/src/artifacts/production_tests.rsindex 6bc8c5f3be..0b9094cc05 100644--- a/crates/openhuman-core/src/artifacts/production_tests.rs+++ b/crates/openhuman-core/src/artifacts/production_tests.rs@@ -91,7 +91,12 @@ async fn a_new_artifact_shares_one_id_and_one_file_between_card_and_record() {production.complete().await.unwrap();let card = get_artifact(&workspace, &id).await.unwrap();- assert_eq!(card.status, CardStatus::Ready, "card error: {:?}", card.error);+ assert_eq!(+ card.status,+ CardStatus::Ready,+ "card error: {:?}",+ card.error+ );assert_eq!(card.size_bytes, 7);let record = versioned_store(&workspace).get(&id).await.unwrap().unwrap();assert_eq!(record.status, RecordStatus::Ready);@@ -133,8 +138,14 @@ async fn a_revision_reuses_the_id_and_file_and_keeps_the_history() {// Each version still holds what it was.let file_v1 = record.version(1).unwrap().file.clone().unwrap();let file_v2 = record.version(2).unwrap().file.clone().unwrap();- assert_eq!(stored_file_bytes(&workspace, &file_v1.key).await, b"deck-v1");- assert_eq!(stored_file_bytes(&workspace, &file_v2.key).await, b"deck-v2!");+ assert_eq!(+ stored_file_bytes(&workspace, &file_v1.key).await,+ b"deck-v1"+ );+ assert_eq!(+ stored_file_bytes(&workspace, &file_v2.key).await,+ b"deck-v2!"+ );}#[tokio::test]diff --git a/crates/openhuman-core/src/artifacts/tiny_store.rs b/crates/openhuman-core/src/artifacts/tiny_store.rsindex a397df4605..ff8823601a 100644--- a/crates/openhuman-core/src/artifacts/tiny_store.rs+++ b/crates/openhuman-core/src/artifacts/tiny_store.rs@@ -326,8 +326,7 @@ pub fn artifacts_service(let file_store = artifact_file_store(workspace_dir);let mut service = Artifacts::new(Arc::new(versioned_store(workspace_dir))).with_observer(Arc::new(- LegacyUiBridge::new(workspace_dir, files, chat)- .with_file_store(file_store.clone()),+ LegacyUiBridge::new(workspace_dir, files, chat).with_file_store(file_store.clone()),)).with_file_roots(guarded_roots(roots));if let Some(file_store) = file_store {@@ -342,9 +341,7 @@ pub(crate) fn artifact_file_store(match crate::storage::local::open("artifacts::files", workspace_dir).and_then(|opened| opened.scoped()){- Ok(scoped) => {- Some(Arc::new(tiny_artifacts::BlobFileStore::new(&scoped)))- }+ Ok(scoped) => Some(Arc::new(tiny_artifacts::BlobFileStore::new(&scoped))),Err(error) => {log::warn!("[artifacts] file storage unavailable: {error:#}");None