From 3465f8a6ac7c8991155574aa1e6e612cc8741f6c Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 14 Jun 2007 08:58:36 +0000
Subject: [PATCH] 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
---
 product/ERP5Type/tests/testPerformance.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/product/ERP5Type/tests/testPerformance.py b/product/ERP5Type/tests/testPerformance.py
index d13699d22e..8a16f806c3 100755
--- a/product/ERP5Type/tests/testPerformance.py
+++ b/product/ERP5Type/tests/testPerformance.py
@@ -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):
-- 
2.30.9