From: cash Date: Sun, 31 Oct 2010 01:43:56 +0000 (+0000) Subject: Unit tests with the system log turned on are too slow X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3a568aac00b71f948ed8d49f828e38471ef58d2e;p=lorea%2Felgg.git Unit tests with the system log turned on are too slow git-svn-id: http://code.elgg.org/elgg/trunk@7164 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/tests/suite.php b/engine/tests/suite.php index 19c23c6a5..23637b9b1 100644 --- a/engine/tests/suite.php +++ b/engine/tests/suite.php @@ -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);