X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/ca1b06d599c610643495100186a1786d9c3dcc35..354e50112b53bc8a7a16f0338e15e2ba081e62ce:/t/git-cgi.t diff --git a/t/git-cgi.t b/t/git-cgi.t index ee77257b9..ee47261ed 100755 --- a/t/git-cgi.t +++ b/t/git-cgi.t @@ -291,6 +291,10 @@ sub test { $content = readfile('t/tmp/in/two.mdwn'); like($content, qr{Here is new content for the second page}); + # We have to wait 1 second here so that new writes are guaranteed + # to have a strictly larger mtime. + sleep 1; + # This one can legitimately be reverted $content = run_cgi(method => 'post', params => {