Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0205-config.sh | 5 |
1 file changed, 4 insertions, 1 deletion
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</a>" tmp && + ls quiet-cache | grep "^rc-" >cached && + test_line_count = 1 cached && cgit_rc quietrc "url=" >tmp 2>>err && grep ">foo.git</a>" tmp && test_must_be_empty err |
