Stop test from randomly failing
authorAryeh Gregor <ayg@aryeh.name>
Mon, 26 Mar 2018 17:08:22 +0000 (20:08 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Mon, 26 Mar 2018 17:08:22 +0000 (20:08 +0300)
commit3c290c6b969d562fa0b46e24ec701eab4e2caa9f
treeea80474dc95ad4c94528fc0a1025c47e7d2cbf49
parent51eba1974c51c4874eb64d639fa5ae0eb56ef0d4
Stop test from randomly failing

The difference between two integers is less than 1 only if it's 0, so
the test as-is will fail whenever the second changes between when '1
day' is evaluated when inserting the block, and when time() is called
for the assert.

Change-Id: Ic76ff05729129b74345696879a934253525213fa
tests/phpunit/includes/api/ApiBlockTest.php