Skip to content
Snippets Groups Projects
Commit a1b0aa1e authored by Andreas Gohr's avatar Andreas Gohr
Browse files

try to fix flaky test by clearing the statcache

parent f56d5034
No related branches found
No related tags found
No related merge requests found
...@@ -213,17 +213,22 @@ You can use up to five different levels of', ...@@ -213,17 +213,22 @@ You can use up to five different levels of',
$params = array('nice_page', $rev[1]); $params = array('nice_page', $rev[1]);
$this->assertEquals($expected, $this->remote->call('wiki.getPageInfoVersion', $params)); $this->assertEquals($expected, $this->remote->call('wiki.getPageInfoVersion', $params));
clearstatcache(wikiFN('nice_page'));
$rev[2] = filemtime(wikiFN('nice_page')); $rev[2] = filemtime(wikiFN('nice_page'));
sleep(1); // wait for new revision ID sleep(1); // wait for new revision ID
clearstatcache(wikiFN('nice_page'));
$this->remote->call('dokuwiki.appendPage', $params_append); $this->remote->call('dokuwiki.appendPage', $params_append);
$rev[3] = filemtime(wikiFN('nice_page')); $rev[3] = filemtime(wikiFN('nice_page'));
sleep(1); sleep(1);
clearstatcache(wikiFN('nice_page'));
$this->remote->call('dokuwiki.appendPage', $params_append); $this->remote->call('dokuwiki.appendPage', $params_append);
$rev[4] = filemtime(wikiFN('nice_page')); $rev[4] = filemtime(wikiFN('nice_page'));
sleep(1); sleep(1);
clearstatcache(wikiFN('nice_page'));
$this->remote->call('dokuwiki.appendPage', $params_append); $this->remote->call('dokuwiki.appendPage', $params_append);
$rev[5] = filemtime(wikiFN('nice_page')); $rev[5] = filemtime(wikiFN('nice_page'));
sleep(1); sleep(1);
clearstatcache(wikiFN('nice_page'));
$this->remote->call('dokuwiki.appendPage', $params_append); $this->remote->call('dokuwiki.appendPage', $params_append);
$rev[6] = filemtime(wikiFN('nice_page')); $rev[6] = filemtime(wikiFN('nice_page'));
sleep(1); sleep(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment