Commit 3465f8a6 authored by Sebastien Robin's avatar Sebastien Robin

call the garbage collector less often than the default, because this makes...

call the garbage collector less often than the default, because this makes decrease performance from time to time

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14819 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 88ece481
......@@ -84,6 +84,11 @@ class TestPerformance(ERP5TypeTestCase, LogInterceptor):
"""
self.login()
self.bar_module = self.getBarModule()
# Make the collection frequency higher,
# because if it is waiting too much time, then the collection
# take too much time and the test fails
import gc
gc.set_threshold(5000, 10, 10)
def test_00_viewBarObject(self, quiet=quiet, run=run_all_test):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment