mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
FIX Disabled the shutdown handler in QueuedJobs
This commit is contained in:
parent
acd8b7b164
commit
6f8ef48a9b
@ -45,8 +45,10 @@ class BatchedProcessorTest extends SapphireTest
|
|||||||
parent::setUpOnce();
|
parent::setUpOnce();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
Config::modify()->set(SearchUpdater::class, 'flush_on_shutdown', false);
|
||||||
|
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
if (!interface_exists('Symbiote\QueuedJobs\Services\QueuedJob')) {
|
if (!interface_exists('Symbiote\QueuedJobs\Services\QueuedJob')) {
|
||||||
|
@ -8,6 +8,7 @@ use SilverStripe\Dev\SapphireTest;
|
|||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\DB;
|
use SilverStripe\ORM\DB;
|
||||||
use SilverStripe\FullTextSearch\Search\FullTextSearch;
|
use SilverStripe\FullTextSearch\Search\FullTextSearch;
|
||||||
|
use SilverStripe\FullTextSearch\Search\Updaters\SearchUpdater;
|
||||||
use SilverStripe\FullTextSearch\Solr\Reindex\Handlers\SolrReindexQueuedHandler;
|
use SilverStripe\FullTextSearch\Solr\Reindex\Handlers\SolrReindexQueuedHandler;
|
||||||
use SilverStripe\FullTextSearch\Solr\Reindex\Handlers\SolrReindexHandler;
|
use SilverStripe\FullTextSearch\Solr\Reindex\Handlers\SolrReindexHandler;
|
||||||
use SilverStripe\FullTextSearch\Solr\Services\Solr4Service;
|
use SilverStripe\FullTextSearch\Solr\Services\Solr4Service;
|
||||||
@ -46,8 +47,10 @@ class SolrReindexQueuedTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
protected $service = null;
|
protected $service = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
Config::modify()->set(SearchUpdater::class, 'flush_on_shutdown', false);
|
||||||
|
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
if (!interface_exists('Symbiote\QueuedJobs\Services\QueuedJob')) {
|
if (!interface_exists('Symbiote\QueuedJobs\Services\QueuedJob')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user