mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-71731 phpunit: isolate tests requiring lots of peak mem
It's mostly addDocuments(), used by test_add_document_batch_large() with 100 big documents what requires a lot of ram although apparently, it's freed (partially) once ended. Just the peak usage remains high. In any case, isolating that test to avoid the non-freed side of it to consume too much memory for the rest. (We allow "only" 2GB). Still, I think that there is a good work about to detect which tests are leaking / consuming too much, I'd bet there are a bunch running completely out of control.
This commit is contained in:
parent
2d82188d89
commit
b93c667bf6
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ require_once($CFG->dirroot . '/search/engine/solr/tests/fixtures/testable_engine
|
||||||
* @category phpunit
|
* @category phpunit
|
||||||
* @copyright 2015 David Monllao {@link http://www.davidmonllao.com}
|
* @copyright 2015 David Monllao {@link http://www.davidmonllao.com}
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*
|
||||||
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class search_solr_engine_testcase extends advanced_testcase {
|
class search_solr_engine_testcase extends advanced_testcase {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue