Skip to content

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

test: align test formatting and clarify test names

Steven Enamakel7e9270094415
diff --git a/crates/openhuman-core/src/channels/host/host_tests.rs b/crates/openhuman-core/src/channels/host/host_tests.rs
index 1327b4341c..3a75bdcad6 100644
--- a/crates/openhuman-core/src/channels/host/host_tests.rs
+++ b/crates/openhuman-core/src/channels/host/host_tests.rs
@@ -187,8 +187,8 @@ async fn typed_channel_projection_uses_scoped_persisted_row_bindings_after_resta
};
assert!(super::adapters::project_channel_event(&bob, event.clone())
- .await
- .unwrap()
+ .await
+ .unwrap()
.is_none());
let bob_messages = crate::threads::store::blocking::get_messages(
bob.clone(),
@@ -202,8 +202,8 @@ async fn typed_channel_projection_uses_scoped_persisted_row_bindings_after_resta
"bob-voice"
);
assert!(bob_messages[0]
- .extra_metadata
- .get("channelActivity")
+ .extra_metadata
+ .get("channelActivity")
.is_none());
let projected = super::adapters::project_channel_event(&alice, event.clone())
@@ -237,8 +237,8 @@ async fn typed_channel_projection_uses_scoped_persisted_row_bindings_after_resta
..event
};
assert!(super::adapters::project_channel_event(&restarted, read)
- .await
- .unwrap()
+ .await
+ .unwrap()
.is_some());
let messages = crate::threads::store::blocking::get_messages(restarted, workspace, thread_id)
.await
@@ -283,7 +283,7 @@ async fn event_sink_rejects_non_object_payload() {
}
#[tokio::test]
-async fn event_sink_ignores_legacy_reactions_without_a_typed_message_target() {
+async fn event_sink_routes_channel_reactions_to_domain_bus() {
let sink = OpenHumanEventSink;
assert!(sink
.publish_host(
@@ -310,10 +310,10 @@ async fn event_sink_ignores_legacy_reactions_without_a_typed_message_target() {
// Unknown domain/kind is a benign no-op.
assert!(sink
.publish_host("mystery", "x", serde_json::json!({}))
- .await
+ .await
.is_ok());
assert!(sink
.publish_host("channel", "unknown", serde_json::json!({}))
- .await
+ .await
.is_ok());
}
diff --git a/crates/openhuman-core/src/core/events_tests.rs b/crates/openhuman-core/src/core/events_tests.rs
index 10ec80292f..39b17b5dd4 100644
--- a/crates/openhuman-core/src/core/events_tests.rs
+++ b/crates/openhuman-core/src/core/events_tests.rs
@@ -782,18 +782,18 @@ fn a_long_error_is_clipped_on_a_character_boundary() {
#[test]
fn events_outside_the_supervisor_have_no_event_log_detail() {
assert!(DomainEvent::CronJobCompleted {
- job_id: "job-1".into(),
- success: true,
- output: "done".into(),
- }
- .log_detail()
- .is_none());
+ job_id: "job-1".into(),
+ success: true,
+ output: "done".into(),
+ }
+ .log_detail()
+ .is_none());
assert!(DomainEvent::McpServerConnected {
- server_id: "srv-1".into(),
- tool_count: 25,
- }
- .log_detail()
- .is_none());
+ server_id: "srv-1".into(),
+ tool_count: 25,
+ }
+ .log_detail()
+ .is_none());
}
// ── workspace_dir ────────────────────────────────────────────────────────
@@ -952,7 +952,7 @@ fn events_without_a_workspace_report_none() {
}
.workspace_dir(),
None,
- "the retired wire tombstone has no workspace field"
+ "a channel event with no workspace field must not borrow one"
);
}