Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | 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 |
