mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
FIX Disable QueuedJobService shutdown function in fulltextsearch unit tests
This commit is contained in:
parent
6f8ef48a9b
commit
c7cbb0190d
@ -56,6 +56,8 @@ class BatchedProcessorTest extends SapphireTest
|
||||
$this->markTestSkipped("These tests need the QueuedJobs module installed to run");
|
||||
}
|
||||
|
||||
Config::modify()->set(QueuedJobService::class, 'use_shutdown_function', false);
|
||||
|
||||
if (class_exists('Subsite')) {
|
||||
$this->skipTest = true;
|
||||
$this->markTestSkipped(get_class() . ' skipped when running with subsites');
|
||||
|
@ -58,6 +58,8 @@ class SolrReindexQueuedTest extends SapphireTest
|
||||
return $this->markTestSkipped("These tests need the QueuedJobs module installed to run");
|
||||
}
|
||||
|
||||
Config::modify()->set(QueuedJobService::class, 'use_shutdown_function', false);
|
||||
|
||||
// Set queued handler for reindex
|
||||
Config::modify()->set(Injector::class, SolrReindexHandler::class, array(
|
||||
'class' => SolrReindexQueuedHandler::class
|
||||
|
Loading…
x
Reference in New Issue
Block a user