Skip to content

Commit

Permalink
MDL-38912 prevent time-outs during unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Apr 5, 2013
1 parent 422f68f commit 82081c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/phpunit/classes/util.php
Expand Up @@ -139,6 +139,14 @@ public static function reset_all_data($logchanges = false) {
if ($COURSE->id != $oldsite->id) { if ($COURSE->id != $oldsite->id) {
$warnings[] = 'Warning: unexpected change of $COURSE'; $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 // restore original globals
Expand Down

0 comments on commit 82081c1

Please sign in to comment.