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 context to status round-trip assertion

Steven Enamakel469c4a0536ac
diff --git a/crates/openhuman-core/src/channels/routes_command_tests.rs b/crates/openhuman-core/src/channels/routes_command_tests.rs
index 58a90ae6cb..c4375aff8b 100644
--- a/crates/openhuman-core/src/channels/routes_command_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_command_tests.rs
@@ -274,7 +274,11 @@ async fn handle_runtime_command_telegram_new_status_and_sessions_round_trip() {
assert!(sent_text(&sent[1]).contains("Provider: `anthropic`"));
assert!(sent_text(&sent[1]).contains("Model: `claude-3`"));
assert!(sent_text(&sent[1]).contains("In-memory turns: 1"));
- assert!(sent_text(&sent[1]).contains("Turn: in progress"));
+ assert!(
+ sent_text(&sent[1]).contains("Turn: in progress"),
+ "unexpected /status reply: {}",
+ sent_text(&sent[1])
+ );
assert!(sent_text(&sent[2]).contains("**Recent sessions**"));
assert!(sent_text(&sent[2]).contains("→ `Telegram"));