Skip to content

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

fix: remove orphaned test code that broke module structure

Steven Enamakelfd6f27444a26
diff --git a/src/openhuman/mcp/registry/store_tests.rs b/src/openhuman/mcp/registry/store_tests.rs
index 1066ee1edb..3ab7695d6b 100644
--- a/src/openhuman/mcp/registry/store_tests.rs
+++ b/src/openhuman/mcp/registry/store_tests.rs
@@ -1,7 +1,3 @@
-#[cfg(test)]
-mod tests {
- use super::*;
- use tempfile::NamedTempFile;
fn open_test_conn() -> (NamedTempFile, Connection) {
let f = NamedTempFile::new().unwrap();
@@ -575,4 +571,3 @@ mod tests {
err.to_string()
.contains("Failed to add bogus column to mcp_servers"),
"unexpected error: {err}"
- );
diff --git a/src/openhuman/mcp/registry/types_tests.rs b/src/openhuman/mcp/registry/types_tests.rs
index 8b4065f808..cc0ca19397 100644
--- a/src/openhuman/mcp/registry/types_tests.rs
+++ b/src/openhuman/mcp/registry/types_tests.rs
@@ -1,7 +1,3 @@
- use super::*;
- use serde_json::json;
-
- #[test]
fn command_kind_roundtrip() {
assert_eq!(CommandKind::parse("node").as_str(), "node");
assert_eq!(CommandKind::parse("python").as_str(), "python");
@@ -363,4 +359,3 @@
let v = serde_json::to_value(&s).unwrap();
assert_eq!(v["status"], json!("connected"));
// `auth_hint` is omitted from the wire when absent (skip_serializing_if).
- assert!(v.get("auth_hint").is_none());