From a1b0aa1e27f62e8bc4afd840ba0419fca6e7bb7d Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sat, 11 Jun 2016 12:34:56 +0200 Subject: [PATCH] try to fix flaky test by clearing the statcache --- _test/tests/inc/remoteapicore.test.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_test/tests/inc/remoteapicore.test.php b/_test/tests/inc/remoteapicore.test.php index 5863ab216..1d0de40cf 100644 --- a/_test/tests/inc/remoteapicore.test.php +++ b/_test/tests/inc/remoteapicore.test.php @@ -213,17 +213,22 @@ You can use up to five different levels of', $params = array('nice_page', $rev[1]); $this->assertEquals($expected, $this->remote->call('wiki.getPageInfoVersion', $params)); + clearstatcache(wikiFN('nice_page')); $rev[2] = filemtime(wikiFN('nice_page')); sleep(1); // wait for new revision ID + clearstatcache(wikiFN('nice_page')); $this->remote->call('dokuwiki.appendPage', $params_append); $rev[3] = filemtime(wikiFN('nice_page')); sleep(1); + clearstatcache(wikiFN('nice_page')); $this->remote->call('dokuwiki.appendPage', $params_append); $rev[4] = filemtime(wikiFN('nice_page')); sleep(1); + clearstatcache(wikiFN('nice_page')); $this->remote->call('dokuwiki.appendPage', $params_append); $rev[5] = filemtime(wikiFN('nice_page')); sleep(1); + clearstatcache(wikiFN('nice_page')); $this->remote->call('dokuwiki.appendPage', $params_append); $rev[6] = filemtime(wikiFN('nice_page')); sleep(1); -- GitLab