Skip to content

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

test(artifacts): update preview tests for file reading logic

Steven Enamakeld99f20b69922
diff --git a/crates/openhuman-core/src/artifacts/preview_tests.rs b/crates/openhuman-core/src/artifacts/preview_tests.rs
index b52047d20c..da311b141b 100644
--- a/crates/openhuman-core/src/artifacts/preview_tests.rs
+++ b/crates/openhuman-core/src/artifacts/preview_tests.rs
@@ -46,7 +46,7 @@ async fn a_text_kind_shows_its_newest_version() {
}
#[tokio::test]
-async fn a_text_file_inside_the_roots_is_read() {
+async fn a_text_file_is_read_from_the_scoped_file_store() {
let dir = tempfile::tempdir().unwrap();
let files = file_store(dir.path());
files.put("artifacts/files/f-1/v1.txt", b"plain notes", None).await.unwrap();
@@ -64,8 +64,7 @@ async fn a_text_file_inside_the_roots_is_read() {
}
#[tokio::test]
-async fn a_file_outside_the_roots_is_not_opened() {
- let dir = tempfile::tempdir().unwrap();
+async fn a_blob_file_is_not_read_without_its_store() {
let elsewhere = tempfile::tempdir().unwrap();
let files = file_store(elsewhere.path());
files.put("artifacts/files/f-1/v1.txt", b"do not read", None).await.unwrap();