Check for expiry dates in a 10-second window
authorSam Wilson <sam@samwilson.id.au>
Tue, 20 Dec 2016 12:13:56 +0000 (20:13 +0800)
committerSam Wilson <sam@samwilson.id.au>
Wed, 21 Dec 2016 02:21:17 +0000 (10:21 +0800)
commit9d8358e097ad614bf14abf42f5f75a4e4308648c
treeea1d0c8f61a85a1ffd2c2e7d253d702f4db6bcbe
parentfbb1f742435c1d1eb3b31bf980e0682fc509b8c2
Check for expiry dates in a 10-second window

This changes a test of expiry dates to be a 10-second range,
to account for slow testing. For example, a test may start and
set the block's expiry in one second, but by the time it is
reading the value from that block's cookie it can sometimes be
the next second. Making it 10 seconds just gives it more room
for being slow.

Bug: T153527
Change-Id: I5efde7785134a75487d31ef3d8b7b14f53b7f5d0
tests/phpunit/includes/user/UserTest.php