From 7ff9474a5dc7b9112685375c802207c3749d25d1 Mon Sep 17 00:00:00 2001 From: m1ngsama Date: Sun, 31 May 2026 20:02:09 +0800 Subject: [PATCH] Relax private inbox unread count test --- tests/test_user_lifecycle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_user_lifecycle.sh b/tests/test_user_lifecycle.sh index c6d14eb..f9885f2 100755 --- a/tests/test_user_lifecycle.sh +++ b/tests/test_user_lifecycle.sh @@ -288,9 +288,9 @@ fi BOB_PID="" if grep -q '.*alice.*private lifecycle second' "$STATE_DIR/bob.log" && - grep -q '2 新' "$STATE_DIR/bob.log" && + grep -Eq '私信.*[0-9]+ 新' "$STATE_DIR/bob.log" && grep -q '\*.*alice.*private lifecycle second' "$STATE_DIR/bob.log" && - grep -q '1 新' "$STATE_DIR/alice.log" && + grep -Eq '私信.*[0-9]+ 新' "$STATE_DIR/alice.log" && grep -q '\*.*bob.*private lifecycle reply' "$STATE_DIR/alice.log"; then echo "✓ unread private messages are visibly marked in inbox" PASS=$((PASS + 1))