Skip to content

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

chore: remove unused test files for tokenjuice schemas and tools

Steven Enamakeldad10ba789b1
diff --git a/crates/openhuman-core/src/inference/tokenjuice/schemas_tests.rs b/crates/openhuman-core/src/inference/tokenjuice/schemas_tests.rs
index 5d7625aa6c..59af0c51f4 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/schemas_tests.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/schemas_tests.rs
@@ -8,24 +8,6 @@ fn all_schemas_have_namespace() {
}
/* Module-backed behavior is covered by TinyJuice's loader E2E. */
-#[tokio::test]
-#[ignore = "requires a built TinyJuice module"]
-async fn detect_handler_classifies_json() {
- let mut p = Map::new();
- p.insert(
- "content".into(),
- Value::String(r#"[{"a":1,"b":2},{"a":3,"b":4}]"#.into()),
- );
- let out = handle_detect(p).await.unwrap();
- assert_eq!(out["kind"], "json");
-}
-
-#[tokio::test]
-#[ignore = "requires a built TinyJuice module"]
-async fn cache_stats_handler_returns_counts() {
- let out = handle_cache_stats(Map::new()).await.unwrap();
- assert!(out["entries"].is_u64());
-}
// ── #6088: `compress` must expose all five ContentHint fields ────────────────
diff --git a/crates/openhuman-core/src/inference/tokenjuice/tools_tests.rs b/crates/openhuman-core/src/inference/tokenjuice/tools_tests.rs
index 9980b18567..fad606631b 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/tools_tests.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/tools_tests.rs
@@ -1,28 +1,4 @@
use super::*;
-#[tokio::test]
-#[ignore = "requires a built TinyJuice module"]
-async fn retrieves_offloaded_original() {
- let original = "ORIGINAL TOKENJUICE PAYLOAD ".repeat(20);
- let hash = "module-fixture";
- let tool = TokenjuiceRetrieveTool::new();
- let res = tool.execute(json!({ "token": hash })).await.unwrap();
- assert!(!res.is_error);
- assert_eq!(res.output(), original);
-}
-
-#[tokio::test]
-#[ignore = "requires a built TinyJuice module"]
-async fn retrieves_line_range() {
- let _original = "r0\nr1\nr2\nr3\nr4";
- let hash = "module-fixture";
- let tool = TokenjuiceRetrieveTool::new();
- let res = tool
- .execute(json!({ "token": hash, "range": { "start": 1, "end": 3, "unit": "lines" } }))
- .await
- .unwrap();
- assert!(!res.is_error);
- assert_eq!(res.output(), "r1\nr2");
-}
#[tokio::test]
async fn missing_token_is_error() {