Skip to content

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

test(channels): add failure detail to /new response assertion

Steven Enamakelf5d78628464a
diff --git a/crates/openhuman-core/src/channels/routes_command_tests.rs b/crates/openhuman-core/src/channels/routes_command_tests.rs
index 948f98029a..9c941dfbc6 100644
--- a/crates/openhuman-core/src/channels/routes_command_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_command_tests.rs
@@ -269,7 +269,11 @@ async fn handle_runtime_command_telegram_new_status_and_sessions_round_trip() {
let sent = channel_impl.sent.lock().unwrap();
assert_eq!(sent.len(), 3);
- assert!(sent_text(&sent[0]).contains("Started new session"));
+ assert!(
+ sent_text(&sent[0]).contains("Started new session"),
+ "unexpected /new response: {}",
+ sent_text(&sent[0])
+ );
assert!(sent_text(&sent[0]).contains("In-memory channel history cleared for this chat."));
assert!(sent_text(&sent[1]).contains("**Status**"));