test(channels): neutralize UTF-8 truncation regression fixture (#289)
* test(channels): neutralize UTF-8 truncation regression fixture * fix(ci): resolve fmt drift and discord test config init
This commit is contained in:
parent
3231a61323
commit
b5d9f72023
1 changed files with 1 additions and 1 deletions
|
|
@ -1449,7 +1449,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn channel_log_truncation_is_utf8_safe_for_multibyte_text() {
|
||||
let msg = "你好!我是监察,武威节点的 AI 助手。目前节点运行正常,有什么需要我帮助的吗?";
|
||||
let msg = "Hello from ZeroClaw 🌍. Current status is healthy, and café-style UTF-8 text stays safe in logs.";
|
||||
|
||||
// Reproduces the production crash path where channel logs truncate at 80 chars.
|
||||
let result = std::panic::catch_unwind(|| crate::util::truncate_with_ellipsis(msg, 80));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue