Commit ea39388e authored by Dries's avatar Dries

- Patch #351805 by chx: worked around endless loops in tests.

parent 2e1827d0
......@@ -116,6 +116,12 @@ class DrupalWebTestCase {
*/
protected $assertions = array();
/**
* Time limit for the test.
*/
protected $timeLimit = 180;
/**
* Constructor for DrupalWebTestCase.
*
......@@ -857,6 +863,7 @@ protected function setUp() {
variable_set('file_directory_path', file_directory_path() . '/' . $db_prefix);
$directory = file_directory_path();
file_check_directory($directory, FILE_CREATE_DIRECTORY); // Create the files directory.
set_time_limit($this->timeLimit);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment