From 5c4e0c4e7cf7dd9742ea488f25fa4f317431dca9 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Wed, 19 Aug 2009 15:53:02 +0000 Subject: [PATCH] Clear pages before checking for page corruption. --- t/journal.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/journal.t b/t/journal.t index 24248b6e..e42f268d 100755 --- a/t/journal.t +++ b/t/journal.t @@ -77,12 +77,18 @@ test_page_negative($page, $yesterday, $beforeyesterday); test_page(get_page('action=browse id=Summary pwd=foo'), "$tomorrow.*$today.*$yesterday.*$beforeyesterday"); -# Test for page corruption. Don't use update_page for the first update +# Test for page corruption. Start with an empty set of pages and a +# fresh config file because of the $JournalLimit and dynamic pagenames +# used above. +clear_pages(); + +# Don't use update_page for the first update # because we don't want to render the page right after creating it. get_page('title=2009-06-22 text=hugglifuzbubs'); $page = get_page('action=browse raw=1 id=2009-06-22'); test_page($page, 'hugglifuzbubs'); test_page_negative($page, 'blocks'); + test_page(update_page('Journal', "This is the journal.\n\n\n"), 'This is the journal', '2009-06-22',