Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Move the test time limit code into Unit_Test since some parts of the

code (like ORM_MPTT) mess with the time limit which interferes with
the overall time limit set in Gallery_Unit_Test_Controller.
  • Loading branch information...
commit 587284ab38a78580c4ce83735fb563aa9951e701 1 parent 79740a2
Bharat Mediratta authored December 15, 2010
1  modules/gallery_unit_test/controllers/gallery_unit_test.php
@@ -132,7 +132,6 @@ function index() {
2  modules/unit_test/libraries/Unit_Test.php
@@ -185,6 +185,8 @@ public function __construct($extra_paths=array(), $filter=null)
185 185
 
186 186
                                                 $e = null;
187 187
 						try {
  188
+							// Enforce a time limit
  189
+							set_time_limit(30);
188 190
 
189 191
 							// Run the actual test
190 192
 							$object->$method_name();

0 notes on commit 587284a

Please sign in to comment.
Something went wrong with that request. Please try again.