mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
Fixed unit test
This commit is contained in:
parent
86ae77811d
commit
f379d3a36d
@ -164,7 +164,6 @@ class Resque_Worker
|
||||
$this->log('Starting blocking with timeout of ' . $interval, self::LOG_VERBOSE);
|
||||
$this->updateProcLine('Waiting for ' . implode(',', $this->queues) . ' with blocking timeout ' . $interval);
|
||||
} else {
|
||||
$this->log('Starting with interval of ' . $interval, self::LOG_VERBOSE);
|
||||
$this->updateProcLine('Waiting for ' . implode(',', $this->queues) . ' with interval ' . $interval);
|
||||
}
|
||||
|
||||
|
@ -257,7 +257,7 @@ class Resque_Tests_WorkerTest extends Resque_Tests_TestCase
|
||||
Resque::enqueue('jobs', 'Test_Job_2');
|
||||
|
||||
$i = 1;
|
||||
while($job = $worker->reserve(60))
|
||||
while($job = $worker->reserve(true, 1))
|
||||
{
|
||||
$this->assertEquals('Test_Job_' . $i, $job->payload['class']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user