From adb693778508eff0c10289bc1b30be6a6a82f0ab Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 18:26:05 -1000 Subject: Compare the cached page with the uncached one whole The footer lost the time it was generated at in 2018, 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(-) (limited to 'tests') 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