Remove useless sleep() in JobQueueTest
authorAntoine Musso <hashar@free.fr>
Wed, 22 Oct 2014 21:22:10 +0000 (23:22 +0200)
committerAntoine Musso <hashar@free.fr>
Fri, 24 Oct 2014 12:31:00 +0000 (14:31 +0200)
commit7fff25afc15c39d8d9ed1a704fdf0e01002c7fe7
treed0078651e8772839dcd81f5e69e66d6cd0daba56
parentfd56d91d84b94370eac37dcf3c563da99d40392f
Remove useless sleep() in JobQueueTest

I noticed JobQueueTest::testRootDeduplication takes ~ 6.5 seconds, which
is due to the test method using sleep(1) and being passed the provider
provider_queueLists which yields six items.

The reason is to have the array returned by Job::newRootJobParams() to
have an incread value for 'rootJobTimestamp'.  Instead, just copy the
previous array of parameters and increment the UNIX timestamp and
converting back to TS_MW format.

Change-Id: I75066df73f9f92e56b89eb6d928c41e949a2d6a9
tests/phpunit/includes/jobqueue/JobQueueTest.php