mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-49772 behat: Removed optimization as it's not required
This api is called very few times in behat initilisation process, so such optimization is an over engineer. Hence removing it.
This commit is contained in:
parent
91a96d402a
commit
b7861ddab3
@ -273,12 +273,6 @@ class behat_config_manager {
|
||||
* @return int
|
||||
*/
|
||||
public final static function get_parallel_test_runs($runprocess = 0) {
|
||||
global $CFG;
|
||||
|
||||
// Optimise reading this information from file.
|
||||
if (!empty($CFG->behatparallelprocesses)) {
|
||||
return $CFG->behatparallelprocesses;
|
||||
}
|
||||
|
||||
$parallelrun = 0;
|
||||
// Get parallel run info from first file and last file.
|
||||
@ -289,8 +283,6 @@ class behat_config_manager {
|
||||
}
|
||||
}
|
||||
|
||||
$CFG->behatparallelprocesses = $parallelrun;
|
||||
|
||||
return $parallelrun;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user