Skip to content

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

chore(tests): add test coverage for artifacts and host overrides

Steven Enamakel74d904538642
diff --git a/crates/openhuman-core/src/agent/artifacts/files_tests.rs b/crates/openhuman-core/src/agent/artifacts/files_tests.rs
index 951b0287ce..37e11d8b7f 100644
--- a/crates/openhuman-core/src/agent/artifacts/files_tests.rs
+++ b/crates/openhuman-core/src/agent/artifacts/files_tests.rs
@@ -4,8 +4,8 @@ use tempfile::TempDir;
use super::*;
use crate::agent::artifacts::store::{
- create_artifact, delete_artifact, fail_artifact, finalize_artifact, list_artifacts,
- read_artifact_bytes, save_artifact_meta, REGENERATE_TARGET_ID,
+ create_artifact, create_artifact_regenerating, delete_artifact, fail_artifact,
+ finalize_artifact, list_artifacts, read_artifact_bytes, save_artifact_meta,
};
use crate::agent::artifacts::types::ArtifactKind;
diff --git a/crates/openhuman-core/src/agent/host_overrides_tests.rs b/crates/openhuman-core/src/agent/host_overrides_tests.rs
index 43b2b667ef..83746a3311 100644
--- a/crates/openhuman-core/src/agent/host_overrides_tests.rs
+++ b/crates/openhuman-core/src/agent/host_overrides_tests.rs
@@ -22,14 +22,3 @@ fn local_hooks_do_not_escape_their_agent_and_can_be_removed() {
a.post_turn_hook("local", None);
assert!(a.post_turn_hooks().is_empty());
}
-
-#[tokio::test]
-async fn caller_cancellation_is_shared_and_does_not_escape_its_scope() {
- let token = CancellationToken::new();
- with_cancellation(token.clone(), async {
- token.cancel();
- assert!(current_cancellation().is_cancelled());
- })
- .await;
- assert!(!current_cancellation().is_cancelled());
-}