From 50d530128f5e1f48d4e1377b535a7f88ce445a9c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 18:49:22 -1000 Subject: Show the second scan reads the cached list A first request that left no list behind made the second scan again, and the test passed just the same. --- tests/t0205-config.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/t0205-config.sh b/tests/t0205-config.sh index 5931f4c..81ab66f 100755 --- a/tests/t0205-config.sh +++ b/tests/t0205-config.sh @@ -168,7 +168,8 @@ test_expect_success 'includes stop at the nesting limit' ' ' # A scanned repository's own cgitrc is optional, so a scan says nothing when -# one is missing, and neither does reading the scan back from the cache. +# one is missing, and neither does reading the scan back from the cache. The +# first request leaves one list there for the second to read. test_expect_success 'a scan says nothing of the files it may lack' ' git clone -q --bare repos/foo/.git quiet/foo.git && mkdir quiet-cache && @@ -181,6 +182,8 @@ test_expect_success 'a scan says nothing of the files it may lack' ' } >quietrc && cgit_rc quietrc "url=" >tmp 2>err && grep ">foo.git" tmp && + ls quiet-cache | grep "^rc-" >cached && + test_line_count = 1 cached && cgit_rc quietrc "url=" >tmp 2>>err && grep ">foo.git" tmp && test_must_be_empty err -- cgit 2.12.1