From d6eb709025d3fb7ebfff6296fd1d28783215111b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 3 Oct 2026 22:19:30 -1000 Subject: Compare the cached and uncached pages whole The footer lost the time it was generated at, and both runs come from the same binary, so the two pages have nothing to differ in. --- tests/t0003-cache.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/t0003-cache.sh b/tests/t0003-cache.sh index bf38fbb..4b6a43c 100755 --- a/tests/t0003-cache.sh +++ b/tests/t0003-cache.sh @@ -96,11 +96,7 @@ test_expect_success 'the cached body matches one generated with the cache off' ' sed -e "s/^cache-size=64$/cache-size=0/" bigrc >bignocache && CGIT_CONFIG="$PWD/bignocache" QUERY_STRING="url=bigpage/tree/big.txt" cgit >big.nocache && strip_headers big.nocache.body && - # The footer carries the time the page was generated, which the two runs - # cannot agree on. - sed -e "s/generated by .*//" big.nocache.body >big.nocache.timeless && - sed -e "s/generated by .*//" big.second.body >big.cached.timeless && - test_cmp big.nocache.timeless big.cached.timeless + test_cmp big.nocache.body big.second.body ' test_expect_success 'the page ends where it should, so nothing was dropped' ' -- cgit 2.12.1