diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0003-cache.sh')
-rwxr-xr-xtests/t0003-cache.sh9
1 file changed, 4 insertions, 5 deletions
diff --git a/tests/t0003-cache.sh b/tests/t0003-cache.sh
index 4693988..d3e448f 100755
--- a/tests/t0003-cache.sh
+++ b/tests/t0003-cache.sh
@@ -79,8 +79,7 @@ test_expect_success 'set up a repo with a page larger than the output buffer' '
rm -rf cache2 && mkdir cache2
'
-bigpage_query()
-{
+bigpage_query() {
CGIT_CONFIG="$PWD/bigrc" QUERY_STRING="$1" cgit
}
@@ -149,9 +148,9 @@ test_expect_success 'set up a repo missing a parent object' '
rm -rf cache4 && mkdir cache4
'
-test_expect_success 'an error after output began replays none of it' '
+test_expect_success 'an error after output began ends the page with it and caches nothing' '
CGIT_CONFIG="$PWD/brokenrc" QUERY_STRING="url=broken/commit/&id=$tip" cgit >broken.out &&
- grep "Bad commit" broken.out &&
+ grep "Not a commit" broken.out &&
test $(grep -c "^Status:" broken.out) = 1 &&
ls cache4 >broken.slots &&
test_line_count = 0 broken.slots
@@ -165,7 +164,7 @@ test_expect_success 'an error page leaves no slot behind' '
rm -rf cache3 && mkdir cache3 &&
CGIT_CONFIG="$PWD/bigkeyrc" \
QUERY_STRING="url=bigpage/commit/&id=0123456789abcdef0123456789abcdef01234567" cgit >error.out &&
- grep "Bad commit reference" error.out &&
+ grep "Not a commit" error.out &&
ls cache3 >error.slots &&
test_line_count = 0 error.slots
'