From 29cdf64240b44774d5f828cf78a5ec44daec5c48 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 18:02:37 -1000 Subject: Tell the whole commit notice from the per file one Both open with the same sentence, so a grep for it passed on either. --- tests/t0204-limits.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/t0204-limits.sh b/tests/t0204-limits.sh index 9f87ef8..ab68937 100755 --- a/tests/t0204-limits.sh +++ b/tests/t0204-limits.sh @@ -165,9 +165,9 @@ test_expect_success 'a followed single-file diff page renders in full' ' # so it drops the whole body back to the diffstat while a request naming a # single file stays unaffected. test_expect_success 'a commit changing too many files shows stat only' ' - cgit_rc limitfilesrc "url=limits/commit/" >tmp && - grep "too large to be rendered inline" tmp && - ! grep "class=.hunk." tmp + cgit_ok limitfilesrc "url=limits/commit/" >tmp && + test_grep "This diff is too large to be rendered inline. Follow a file above" tmp && + test_grep ! "class=.hunk." tmp ' test_expect_success 'the single-file page is not limited by max-diff-files' ' @@ -188,7 +188,7 @@ test_expect_success 'the diff caps hold when the path names a directory' ' git -C repos/capdir commit -q -m dir && cgitrc_repo capdirrc capdir max-diff-files=2 && cgit_ok capdirrc "url=capdir/diff/dir" >tmp && - test_grep "too large to be rendered inline" tmp && + test_grep "This diff is too large to be rendered inline. Follow a file above" tmp && cgit_ok capdirrc "url=capdir/diff/dir/f1" >tmp && test_grep "class=.hunk." tmp && test_grep ! "too large to be rendered inline" tmp -- cgit 2.12.1