1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Merge pull request #6232 from gadelkareem/patch-3

Allow gearman env vars
This commit is contained in:
Marco Pivetta 2017-01-14 01:18:13 +01:00 committed by GitHub
commit 730db5fd2e

View File

@ -26,7 +26,10 @@ class GearmanLockTest extends OrmFunctionalTestCase
$this->tasks = [];
$this->gearman = new \GearmanClient();
$this->gearman->addServer();
$this->gearman->addServer(
isset($_SERVER['GEARMAN_HOST']) ? $_SERVER['GEARMAN_HOST'] : null,
isset($_SERVER['GEARMAN_PORT']) ? $_SERVER['GEARMAN_PORT'] : 4730
);
$this->gearman->setCompleteCallback([$this, "gearmanTaskCompleted"]);
$article = new CmsArticle();