Searched hist:d732617bb174dbb522fd95de657773e248268749 (Results 1 – 1 of 1) sorted by relevance
/dokuwiki/_test/core/ |
H A D | DokuWikiTest.php | d732617bb174dbb522fd95de657773e248268749 Thu Dec 01 09:02:28 UTC 2016 Andreas Gohr <gohr@cosmocode.de> new helper method waitForTick() in DokuWikiTest
Some of our tests require that at least one second has passed before they can continue because our revisions depend on the Unix Timestamp.
Currently we use a sleep(1) for this. However this always waits a whole second, even if the next second is already much closer or maybe already here - especially when some processing has been done since the last operation.
This new method waits for the next second by checking the time every 10th of a second. This might speed up some of our tests a bit.
|