1
0
mirror of synced 2025-02-09 08:49:26 +03:00

Allow gearman env vars

This commit is contained in:
Waleed Gadelkareem 2017-01-13 18:11:10 +01:00 committed by GitHub
parent 31c40f8342
commit 109ac5f827

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();