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
test(artifacts): use stored_file_path helper in production tests
Steven Enamakel52add6b35ed3
diff --git a/crates/openhuman-core/src/artifacts/production_tests.rs b/crates/openhuman-core/src/artifacts/production_tests.rsindex f48b568bfe..4a2cc93806 100644--- a/crates/openhuman-core/src/artifacts/production_tests.rs+++ b/crates/openhuman-core/src/artifacts/production_tests.rs@@ -4,7 +4,7 @@ use tiny_artifacts::{ArtifactKind, ArtifactStatus as RecordStatus, ArtifactStoreuse super::*;use crate::artifacts::store::get_artifact;-use crate::artifacts::tiny_store::versioned_store;+use crate::artifacts::tiny_store::{stored_file_path, versioned_store};use crate::artifacts::types::{ArtifactKind as CardKind, ArtifactStatus as CardStatus};fn temp_dirs() -> (PathBuf, PathBuf) {@@ -92,7 +92,7 @@ async fn a_new_artifact_shares_one_id_and_one_file_between_card_and_record() {let kept = crate::artifacts::tiny_store::version_files_dir(&workspace).join(&id).join("v1.pptx");- assert_eq!(std::path::Path::new(&file.path), kept.as_path());+ assert_eq!(stored_file_path(&workspace, &file), kept);assert_eq!(files_in(&files),vec!["quarterly-deck.pptx"],@@ -120,7 +120,10 @@ async fn a_revision_reuses_the_id_and_file_and_keeps_the_history() {b"deck-v2!");// Each version still holds what it was.- let bytes_of = |n: u32| std::fs::read(&record.version(n).unwrap().file.clone().unwrap().path);+ let bytes_of = |n: u32| {+ let file = record.version(n).unwrap().file.clone().unwrap();+ std::fs::read(stored_file_path(&workspace, &file))+ };assert_eq!(bytes_of(1).unwrap(), b"deck-v1");assert_eq!(bytes_of(2).unwrap(), b"deck-v2!");}