mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-37458 testing lock externalization
This commit is contained in:
parent
6b21986911
commit
3f7211f45a
5 changed files with 103 additions and 35 deletions
|
@ -488,7 +488,7 @@ setup_DB();
|
|||
|
||||
if (PHPUNIT_TEST and !PHPUNIT_UTIL) {
|
||||
// make sure tests do not run in parallel
|
||||
phpunit_util::acquire_test_lock();
|
||||
test_lock::acquire('phpunit');
|
||||
$dbhash = null;
|
||||
try {
|
||||
if ($dbhash = $DB->get_field('config', 'value', array('name'=>'phpunittest'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue