From 7a4cc0dc97b4e102900dadcded29106fddd67fc9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Fri, 27 Jan 2012 15:38:14 +0100
Subject: [PATCH] Make stepCheckSiteConsistency local for a test.

It is using internally related to alarm last active process date, so create
such active process.
---
 master/product/Vifib/tests/VifibMixin.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/master/product/Vifib/tests/VifibMixin.py b/master/product/Vifib/tests/VifibMixin.py
index 0f8366f59..c0ecab16c 100644
--- a/master/product/Vifib/tests/VifibMixin.py
+++ b/master/product/Vifib/tests/VifibMixin.py
@@ -159,6 +159,9 @@ class testVifibMixin(ERP5TypeTestCase):
     Create ERP5 user.
     This has to be called only once.
     """
+    # setup new active process for this test, in order have
+    # consistency report local for one test
+    self.portal.portal_alarms.vifib_check_consistency.newActiveProcess()
     self.setupPortalCertificateAuthority()
     import random
     self.portal.portal_caches.erp5_site_global_id = '%s' % random.random()
-- 
2.30.9