fix(channels): check response status in send() for Telegram, Slack, and Discord

Reliability fix: check HTTP response status in channel send methods
This commit is contained in:
Argenis 2026-02-15 09:48:58 -05:00 committed by GitHub
parent 64a64ccd3a
commit ef00cc9a66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 49 additions and 5 deletions

View file

@ -1,4 +1,4 @@
//! Utility functions for ZeroClaw.
//! Utility functions for `ZeroClaw`.
//!
//! This module contains reusable helper functions used across the codebase.
@ -58,7 +58,10 @@ mod tests {
fn test_truncate_ascii_with_truncation() {
// ASCII string longer than limit - truncates
assert_eq!(truncate_with_ellipsis("hello world", 5), "hello...");
assert_eq!(truncate_with_ellipsis("This is a long message", 10), "This is a...");
assert_eq!(
truncate_with_ellipsis("This is a long message", 10),
"This is a..."
);
}
#[test]