Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38912 prevent time-outs during unit tests.

  • Loading branch information...
commit 82081c1f7d60b7c18b0385608d76de0667f36a10 1 parent 422f68f
@timhunt timhunt authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/phpunit/classes/util.php
View
8 lib/phpunit/classes/util.php
@@ -139,6 +139,14 @@ public static function reset_all_data($logchanges = false) {
if ($COURSE->id != $oldsite->id) {
$warnings[] = 'Warning: unexpected change of $COURSE';
}
+
+ if (ini_get('max_execution_time') != 0) {
+ // TODO un-comment this warning, once we have fixed the test
+ // failures that it causes.
+ // $warnings[] = 'Warning: max_execution_time was changed.';
+ // See MDL-38989 for details.
+ set_time_limit(0);
+ }
}
// restore original globals
Please sign in to comment.
Something went wrong with that request. Please try again.