Skip to content

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

test(native-channel): show outbound message bodies in restart timeout

Steven Enamakel95889752d4ea
diff --git a/tests/native_channel_session_restart_e2e.rs b/tests/native_channel_session_restart_e2e.rs
index 2a0815ebbc..17e782260a 100644
--- a/tests/native_channel_session_restart_e2e.rs
+++ b/tests/native_channel_session_restart_e2e.rs
@@ -390,9 +390,9 @@ async fn wait_for_completion(state: &MockState, count: usize) {
.sent_messages
.lock()
.expect("Telegram sent messages")
- .len();
+ .clone();
panic!(
- "timed out waiting for model request {count}; observed {model_requests} model requests, Telegram offsets {offsets:?}, and {sent_messages} outbound messages"
+ "timed out waiting for model request {count}; observed {model_requests} model requests, Telegram offsets {offsets:?}, and outbound bodies {sent_messages:#?}"
);
}
sleep(Duration::from_millis(50)).await;