MDL-38912 fix incorrect timeout reset
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
892c4e1bc6
commit
1802cb2536
@@ -607,13 +607,16 @@ class phpunit_util {
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
if (ini_get('max_execution_time') != 0) {
|
||||
// This is special warning for all resets because we do not want any
|
||||
// libraries to mess with timeouts unintentionally.
|
||||
// Our PHPUnit integration is not supposed to change it either.
|
||||
|
||||
// TODO: MDL-38912 uncomment and fix all + somehow resolve timeouts in failed tests.
|
||||
//$warnings[] = 'Warning: max_execution_time was changed.';
|
||||
set_time_limit(0);
|
||||
}
|
||||
|
||||
// restore original globals
|
||||
|
||||
Reference in New Issue
Block a user