Skip to content

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

test(artifacts): assert stored file contents match original bytes

Steven Enamakel00a86d6bc66b
diff --git a/crates/openhuman-core/src/artifacts/production_tests.rs b/crates/openhuman-core/src/artifacts/production_tests.rs
index 63e659ba56..2a344d6823 100644
--- a/crates/openhuman-core/src/artifacts/production_tests.rs
+++ b/crates/openhuman-core/src/artifacts/production_tests.rs
@@ -97,6 +97,7 @@ async fn a_new_artifact_shares_one_id_and_one_file_between_card_and_record() {
crate::artifacts::tiny_store::stored_file_path(&workspace, &file),
kept
);
+ assert_eq!(std::fs::read(&kept).unwrap(), b"deck-v1");
assert_eq!(
files_in(&files),
vec!["quarterly-deck.pptx"],