From 6f0bf218f34445ad626dee7f557b31526300a921 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 18:01:03 -1000 Subject: Check where the oversized file diff links to The small file test also read the page the test before it left, so it renders the commit itself now. --- 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 1b8ec4b..9f87ef8 100755 --- a/tests/t0204-limits.sh +++ b/tests/t0204-limits.sh @@ -131,13 +131,13 @@ test_expect_success 'a negative ref count lists every ref' ' # The rest of the commit still renders, so one huge file cannot hide the # small change beside it. test_expect_success 'oversized file diff is replaced by a link' ' - cgit_rc limitrc "url=limits/commit/" >tmp && - grep "too large to be rendered inline" tmp && - grep "View it on its own page" tmp + cgit_ok limitrc "url=limits/commit/" >tmp && + test_grep "
This diff is too large to be rendered inline. View it on its own page.
" tmp ' test_expect_success 'small file in the same commit still renders inline' ' - grep "class=.add.>+int y;" tmp + cgit_ok limitrc "url=limits/commit/" >tmp && + test_grep "class=.add.>+int y;" tmp ' test_expect_success 'the single-file diff page always renders in full' ' -- cgit 2.12.1