]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Unit tests with the system log turned on are too slow
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 31 Oct 2010 01:43:56 +0000 (01:43 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 31 Oct 2010 01:43:56 +0000 (01:43 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7164 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/tests/suite.php

index 19c23c6a5f672d45973523c835a12c38c99a1f10..23637b9b1ded595e527dcf26506edde1c4ff541c 100644 (file)
@@ -17,6 +17,10 @@ require_once("$vendor_path/mock_objects.php");
 require_once("$vendor_path/reporter.php");
 require_once("$test_path/elgg_unit_test.php");
 
+// turn off system log
+unregister_elgg_event_handler('all', 'all', 'system_log_listener');
+unregister_elgg_event_handler('log', 'systemlog', 'system_log_default_logger');
+
 // Disable maximum execution time.
 // Tests take a while...
 set_time_limit(0);