MDL-32323 fix concurrent run collision caused by setup reset
This commit is contained in:
+3
-1
@@ -463,8 +463,10 @@ setup_validate_php_configuration();
|
||||
// Connect to the database
|
||||
setup_DB();
|
||||
|
||||
// reset DB tables
|
||||
if (PHPUNIT_TEST and !PHPUNIT_UTIL) {
|
||||
// make sure tests do not run in parallel
|
||||
phpunit_util::acquire_test_lock();
|
||||
// reset DB tables
|
||||
phpunit_util::reset_database();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user