]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
t/git-cgi.t: Wait 1 second before doing a revert that should succeed
authorSimon McVittie <smcv@debian.org>
Sun, 14 May 2017 14:09:29 +0000 (15:09 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 14 May 2017 14:35:52 +0000 (15:35 +0100)
commit8b5c729b8b8699a1828dae2b995af13a481a5da7
tree2b662b86dd88c47876f11618b75972e93dd63086
parent365a930c2c39d1f727aa620155c179c004acdcc1
t/git-cgi.t: Wait 1 second before doing a revert that should succeed

This hopefully fixes a race condition in which the test failed
around 6% of the time.

If we don't wait, the mtime (which is rounded down to 1 second precision
in the APIs we use) will not necessarily change, so the update will not
necessarily cause the page to be refreshed.

Bug-Debian: https://bugs.debian.org/862494
debian/changelog
t/git-cgi.t