diff --git a/lib/Alchemy/Phrasea/TaskManager/Notifier.php b/lib/Alchemy/Phrasea/TaskManager/Notifier.php index ef3816e8ad..74199ea125 100644 --- a/lib/Alchemy/Phrasea/TaskManager/Notifier.php +++ b/lib/Alchemy/Phrasea/TaskManager/Notifier.php @@ -56,6 +56,7 @@ class Notifier implements NotifierInterface $command = $this->createCommand($message); $this->socket->send($command); + $result = false; $limit = microtime(true) + $this->timeout; while (microtime(true) < $limit && false === $result = $this->socket->recv(\ZMQ::MODE_NOBLOCK)) { diff --git a/tests/Alchemy/Tests/Phrasea/Command/Task/TaskListTest.php b/tests/Alchemy/Tests/Phrasea/Command/Task/TaskListTest.php index 5317826f3b..74fddd0b4f 100644 --- a/tests/Alchemy/Tests/Phrasea/Command/Task/TaskListTest.php +++ b/tests/Alchemy/Tests/Phrasea/Command/Task/TaskListTest.php @@ -25,6 +25,6 @@ class TaskListTest extends \PhraseanetTestCase $application->add($command); $setupCommand = $application->find('task-manager:task:list'); - $setupCommand->execute($input, $output); + $setupCommand->run($input, $output); } }