comments.t: Exercise post-2009 comment naming

Since commit 6af6c89d, comments are in files whose names contain a hash.

Signed-off-by: Simon McVittie <smcv@debian.org>
master
Simon McVittie 2019-02-03 16:05:13 +00:00
parent fe4e7cd3f7
commit 4ac930380b
1 changed files with 2 additions and 2 deletions

View File

@ -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