From 945b5d683778143750c91d47fa72c2cf4f86f791 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 17:57:48 -1000 Subject: Match the overflow links on the refs page The test read the page the test before it left and looked for the bare path, which other links on the page also hold. --- tests/t0204-limits.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/t0204-limits.sh b/tests/t0204-limits.sh index d2151c6..00f9326 100755 --- a/tests/t0204-limits.sh +++ b/tests/t0204-limits.sh @@ -67,8 +67,9 @@ test_expect_success 'refs page lists max-ref-count branches and tags' ' ' test_expect_success 'refs page links each overflow to its own category' ' - grep "refs/heads" tmp && - grep "refs/tags" tmp + cgit_ok limitrc "url=limits/refs/" >tmp && + test_grep "href=./limits/refs/heads.>\[\.\.\.\]" tmp && + test_grep "href=./limits/refs/tags.>\[\.\.\.\]" tmp ' # The branches sort by name, so the second page holds branch-3 and master. -- cgit 2.12.1