Skip to content

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

test(storage): alias write fixture as put in archive tests

Steven Enamakel1c767db25db9
diff --git a/crates/openhuman-core/src/storage/layout/archive_tests.rs b/crates/openhuman-core/src/storage/layout/archive_tests.rs
index 623f353d23..8cf1a3264f 100644
--- a/crates/openhuman-core/src/storage/layout/archive_tests.rs
+++ b/crates/openhuman-core/src/storage/layout/archive_tests.rs
@@ -1,5 +1,5 @@
use super::*;
-use crate::storage::layout::test_fixtures::{tree, write};
+use crate::storage::layout::test_fixtures::{tree, write as put};
use tempfile::TempDir;
fn sources(dir: &Path) -> Vec<Source> {
@@ -11,10 +11,10 @@ fn sources(dir: &Path) -> Vec<Source> {
fn source_tree() -> TempDir {
let dir = TempDir::new().unwrap();
- write(&dir.path().join("skills/s1/SKILL.md"), "UNIQUE-CONTENT-1234 skill body");
- write(&dir.path().join("skills/s2/notes.txt"), "second");
+ put(&dir.path().join("skills/s1/SKILL.md"), "UNIQUE-CONTENT-1234 skill body");
+ put(&dir.path().join("skills/s2/notes.txt"), "second");
std::fs::create_dir_all(dir.path().join("skills/empty")).unwrap();
- write(&dir.path().join("jobs.json"), "{\"a\":1}");
+ put(&dir.path().join("jobs.json"), "{\"a\":1}");
#[cfg(unix)]
std::os::unix::fs::symlink("s1/SKILL.md", dir.path().join("skills/link")).unwrap();
dir