MDL-37458 testing lock externalization

This commit is contained in:
David Monllao 2013-01-11 13:57:19 +08:00
parent 6b21986911
commit 3f7211f45a
5 changed files with 103 additions and 35 deletions

View file

@ -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'))) {