Avoid flaky tests by waiting full seconds
commit4af692c25adeba403c19bd84342f212d90051447
authorAndreas Gohr <gohr@cosmocode.de>
Tue, 15 Oct 2019 12:42:59 +0000 (15 14:42 +0200)
committerAndreas Gohr <gohr@cosmocode.de>
Tue, 15 Oct 2019 12:45:44 +0000 (15 14:45 +0200)
tree8f501dd2fa187ab79b222d021633138e4f6cc851
parentc823026dc9e5624c9788e3021d6b03bfe4ed4672
Avoid flaky tests by waiting full seconds

The waitForTick() method tried to be clever and return early if a second
had passed since the last call already. Unfortunatel this did not work
reliably in our tests and we often had failures on tests that required
unique revision numbers.

Pull requests for a reliable version welcome. Until the we wait a second
on each call.
_test/core/DokuWikiTest.php