From f379d3a36d8685d72b86b3b740a85fcb17ee880d Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Wed, 13 Mar 2013 13:03:19 +0100 Subject: [PATCH] Fixed unit test --- lib/Resque/Worker.php | 1 - test/Resque/Tests/WorkerTest.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index 3a730d8..870d4c8 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -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); } diff --git a/test/Resque/Tests/WorkerTest.php b/test/Resque/Tests/WorkerTest.php index b0001c9..1ab7dd2 100644 --- a/test/Resque/Tests/WorkerTest.php +++ b/test/Resque/Tests/WorkerTest.php @@ -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']);