]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
comments.t: Exercise post-2009 comment naming
authorSimon McVittie <smcv@debian.org>
Sun, 3 Feb 2019 16:05:13 +0000 (16:05 +0000)
committerSimon McVittie <smcv@debian.org>
Sun, 3 Feb 2019 16:18:18 +0000 (16:18 +0000)
Since commit 6af6c89d, comments are in files whose names contain a hash.

Signed-off-by: Simon McVittie <smcv@debian.org>
t/comments.t

index f2e32c46e9e214e5bbfac8d5f326cba3219d7474..9bc40b66a2596c8e72a2118b0c3c59b222544f78 100755 (executable)
@@ -39,7 +39,7 @@ $comment = <<EOF;
   date="1969-02-12T07:00:00Z"
   content="I explored"]]
 EOF
-writefile("post/comment_2._comment", "t/tmp/in", $comment);
+writefile("post/comment_2_10a49d69282155c5c3e66dc58f64f956._comment", "t/tmp/in", $comment);
 
 $comment = <<EOF;
 [[!comment username="william"
@@ -50,7 +50,7 @@ writefile("post/comment_1._comment", "t/tmp/in", $comment);
 
 # Give the files mtimes in the wrong order
 ok(utime(111111111, 111111111, "t/tmp/in/post/comment_3._comment"));
-ok(utime(222222222, 222222222, "t/tmp/in/post/comment_2._comment"));
+ok(utime(222222222, 222222222, "t/tmp/in/post/comment_2_10a49d69282155c5c3e66dc58f64f956._comment"));
 ok(utime(333333333, 333333333, "t/tmp/in/post/comment_1._comment"));
 
 # Build the wiki