Skip to content

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

test(ops): use unqualified load_error_message in component tests

Steven Enamakel413a1615ace3
diff --git a/crates/openhuman-core/src/modules/ops_components_tests.rs b/crates/openhuman-core/src/modules/ops_components_tests.rs
index 36a4898f1c..8038ee32c6 100644
--- a/crates/openhuman-core/src/modules/ops_components_tests.rs
+++ b/crates/openhuman-core/src/modules/ops_components_tests.rs
@@ -16,7 +16,7 @@ async fn a_disabled_component_never_reaches_download_or_dlopen() {
.await
.unwrap_err();
assert_eq!(err, LoadError::Disabled("mcp"));
- assert_eq!(ops::load_error_message(err), "COMPONENT_DISABLED:mcp");
+ assert_eq!(load_error_message(err), "COMPONENT_DISABLED:mcp");
}
#[test]
@@ -51,7 +51,7 @@ async fn a_disabled_wallet_never_loads_the_tinywallet_module() {
.await
.unwrap_err();
assert_eq!(err, LoadError::Disabled("wallet"));
- assert_eq!(ops::load_error_message(err), "COMPONENT_DISABLED:wallet");
+ assert_eq!(load_error_message(err), "COMPONENT_DISABLED:wallet");
}
#[cfg(feature = "hosting")]
@@ -62,7 +62,7 @@ async fn a_disabled_hosting_component_never_loads_the_tinyhosts_module() {
.await
.unwrap_err();
assert_eq!(err, LoadError::Disabled("hosting"));
- assert_eq!(ops::load_error_message(err), "COMPONENT_DISABLED:hosting");
+ assert_eq!(load_error_message(err), "COMPONENT_DISABLED:hosting");
let statuses = list(&config);
let status = statuses.iter().find(|s| s.id == "tinyhosts").unwrap();
assert_eq!(status.state, ModuleState::Disabled);
@@ -94,7 +94,7 @@ async fn voice_off_refuses_tinyvoice_before_download_or_load() {
.await
.unwrap_err();
assert_eq!(err, LoadError::Disabled("voice"));
- assert_eq!(ops::load_error_message(err), "COMPONENT_DISABLED:voice");
+ assert_eq!(load_error_message(err), "COMPONENT_DISABLED:voice");
let statuses = list(&config);
let status = statuses.iter().find(|s| s.id == "tinyvoice").unwrap();
assert_eq!(status.state, ModuleState::Disabled);
@@ -108,7 +108,7 @@ async fn a_disabled_sandbox_never_loads_the_tinybox_module() {
.await
.unwrap_err();
assert_eq!(err, LoadError::Disabled("sandbox"));
- assert_eq!(ops::load_error_message(err), "COMPONENT_DISABLED:sandbox");
+ assert_eq!(load_error_message(err), "COMPONENT_DISABLED:sandbox");
let statuses = list(&config);
let status = statuses.iter().find(|s| s.id == "tinybox").unwrap();
assert_eq!(status.state, ModuleState::Disabled);