FIX Disabled the shutdown handler in QueuedJobs

This commit is contained in:
Raissa North 2017-11-30 09:36:15 +13:00
parent acd8b7b164
commit 6f8ef48a9b
2 changed files with 7 additions and 2 deletions

View File

@ -45,8 +45,10 @@ class BatchedProcessorTest extends SapphireTest
parent::setUpOnce();
}
public function setUp()
protected function setUp()
{
Config::modify()->set(SearchUpdater::class, 'flush_on_shutdown', false);
parent::setUp();
if (!interface_exists('Symbiote\QueuedJobs\Services\QueuedJob')) {

View File

@ -8,6 +8,7 @@ use SilverStripe\Dev\SapphireTest;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\FullTextSearch\Search\FullTextSearch;
use SilverStripe\FullTextSearch\Search\Updaters\SearchUpdater;
use SilverStripe\FullTextSearch\Solr\Reindex\Handlers\SolrReindexQueuedHandler;
use SilverStripe\FullTextSearch\Solr\Reindex\Handlers\SolrReindexHandler;
use SilverStripe\FullTextSearch\Solr\Services\Solr4Service;
@ -46,8 +47,10 @@ class SolrReindexQueuedTest extends SapphireTest
*/
protected $service = null;
public function setUp()
protected function setUp()
{
Config::modify()->set(SearchUpdater::class, 'flush_on_shutdown', false);
parent::setUp();
if (!interface_exists('Symbiote\QueuedJobs\Services\QueuedJob')) {